Struct RigidBody
Syntax
public struct RigidBody : ICollidable
Fields
Collider
Declaration
public BlobAssetReference<Collider> Collider
Field Value
CustomTags
Declaration
Field Value
Entity
Declaration
Field Value
WorldFromBody
Declaration
public RigidTransform WorldFromBody
Field Value
Type |
Description |
Unity.Mathematics.RigidTransform |
|
Zero
Declaration
public static readonly RigidBody Zero
Field Value
Methods
CalculateAabb()
Declaration
public Aabb CalculateAabb()
Returns
Implements
CalculateAabb(RigidTransform)
Declaration
public Aabb CalculateAabb(RigidTransform transform)
Parameters
Type |
Name |
Description |
Unity.Mathematics.RigidTransform |
transform |
|
Returns
Implements
CalculateDistance(ColliderDistanceInput)
Declaration
public bool CalculateDistance(ColliderDistanceInput input)
Parameters
Returns
Implements
CalculateDistance(ColliderDistanceInput, ref NativeList<DistanceHit>)
Declaration
public bool CalculateDistance(ColliderDistanceInput input, ref NativeList<DistanceHit> allHits)
Parameters
Returns
Implements
CalculateDistance(ColliderDistanceInput, out DistanceHit)
Declaration
public bool CalculateDistance(ColliderDistanceInput input, out DistanceHit closestHit)
Parameters
Returns
Implements
CalculateDistance(PointDistanceInput)
Declaration
public bool CalculateDistance(PointDistanceInput input)
Parameters
Returns
Implements
CalculateDistance(PointDistanceInput, ref NativeList<DistanceHit>)
Declaration
public bool CalculateDistance(PointDistanceInput input, ref NativeList<DistanceHit> allHits)
Parameters
Returns
Implements
CalculateDistance(PointDistanceInput, out DistanceHit)
Declaration
public bool CalculateDistance(PointDistanceInput input, out DistanceHit closestHit)
Parameters
Returns
Implements
CalculateDistance<T>(ColliderDistanceInput, ref T)
Declaration
public bool CalculateDistance<T>(ColliderDistanceInput input, ref T collector)
where T : struct, ICollector<DistanceHit>
Parameters
Returns
Type Parameters
Implements
CalculateDistance<T>(PointDistanceInput, ref T)
Declaration
public bool CalculateDistance<T>(PointDistanceInput input, ref T collector)
where T : struct, ICollector<DistanceHit>
Parameters
Returns
Type Parameters
Implements
CastCollider(ColliderCastInput)
Declaration
public bool CastCollider(ColliderCastInput input)
Parameters
Returns
Implements
CastCollider(ColliderCastInput, ref NativeList<ColliderCastHit>)
Declaration
public bool CastCollider(ColliderCastInput input, ref NativeList<ColliderCastHit> allHits)
Parameters
Returns
Implements
CastCollider(ColliderCastInput, out ColliderCastHit)
Declaration
public bool CastCollider(ColliderCastInput input, out ColliderCastHit closestHit)
Parameters
Returns
Implements
CastCollider<T>(ColliderCastInput, ref T)
Declaration
public bool CastCollider<T>(ColliderCastInput input, ref T collector)
where T : struct, ICollector<ColliderCastHit>
Parameters
Returns
Type Parameters
Implements
CastRay(RaycastInput)
Declaration
public bool CastRay(RaycastInput input)
Parameters
Returns
Implements
CastRay(RaycastInput, ref NativeList<RaycastHit>)
Declaration
public bool CastRay(RaycastInput input, ref NativeList<RaycastHit> allHits)
Parameters
Returns
Implements
CastRay(RaycastInput, out RaycastHit)
Declaration
public bool CastRay(RaycastInput input, out RaycastHit closestHit)
Parameters
Returns
Implements
CastRay<T>(RaycastInput, ref T)
Declaration
public bool CastRay<T>(RaycastInput input, ref T collector)
where T : struct, ICollector<RaycastHit>
Parameters
Returns
Type Parameters
Implements