Struct CollisionWorld
Syntax
public struct CollisionWorld : ICollidable, IDisposable, ICloneable
Constructors
CollisionWorld(Int32)
Declaration
public CollisionWorld(int numBodies)
Parameters
Type |
Name |
Description |
System.Int32 |
numBodies |
|
Fields
Broadphase
Declaration
public Broadphase Broadphase
Field Value
Properties
Bodies
Declaration
public NativeSlice<RigidBody> Bodies { get; }
Property Value
NumBodies
Declaration
public int NumBodies { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Methods
CalculateAabb()
Declaration
public Aabb CalculateAabb()
Returns
Implements
Declaration
public Aabb CalculateAabb(RigidTransform transform)
Parameters
Type |
Name |
Description |
RigidTransform |
transform |
|
Returns
Implements
Declaration
public bool CalculateDistance(ColliderDistanceInput input)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
Declaration
public bool CalculateDistance(ColliderDistanceInput input, ref NativeList<DistanceHit> allHits)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
Declaration
public bool CalculateDistance(ColliderDistanceInput input, out DistanceHit closestHit)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
Declaration
public bool CalculateDistance(PointDistanceInput input)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
Declaration
public bool CalculateDistance(PointDistanceInput input, ref NativeList<DistanceHit> allHits)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
Declaration
public bool CalculateDistance(PointDistanceInput input, out DistanceHit closestHit)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
Declaration
public bool CalculateDistance<T>(ColliderDistanceInput input, ref T collector)
where T : struct, ICollector<DistanceHit>
Parameters
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
Implements
Declaration
public bool CalculateDistance<T>(PointDistanceInput input, ref T collector)
where T : struct, ICollector<DistanceHit>
Parameters
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
Implements
Declaration
public bool CastCollider(ColliderCastInput input)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
Declaration
public bool CastCollider(ColliderCastInput input, ref NativeList<ColliderCastHit> allHits)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
Declaration
public bool CastCollider(ColliderCastInput input, out ColliderCastHit closestHit)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
Declaration
public bool CastCollider<T>(ColliderCastInput input, ref T collector)
where T : struct, ICollector<ColliderCastHit>
Parameters
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
Implements
Declaration
public bool CastRay(RaycastInput input)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
Declaration
public bool CastRay(RaycastInput input, ref NativeList<RaycastHit> allHits)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
Declaration
public bool CastRay(RaycastInput input, out RaycastHit closestHit)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
Declaration
public bool CastRay<T>(RaycastInput input, ref T collector)
where T : struct, ICollector<RaycastHit>
Parameters
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
Implements
Clone()
Declaration
Returns
Type |
Description |
System.Object |
|
Dispose()
Declaration
Declaration
public bool OverlapAabb(OverlapAabbInput input, ref NativeList<int> allHits)
Parameters
Returns
Type |
Description |
System.Boolean |
|
ScheduleUpdateDynamicLayer(ref PhysicsWorld, Single, Int32, JobHandle)
Declaration
public JobHandle ScheduleUpdateDynamicLayer(ref PhysicsWorld world, float timeStep, int numThreadsHint, JobHandle inputDeps)
Parameters
Type |
Name |
Description |
PhysicsWorld |
world |
|
System.Single |
timeStep |
|
System.Int32 |
numThreadsHint |
|
JobHandle |
inputDeps |
|
Returns
Type |
Description |
JobHandle |
|