Class PhysicsWorldExtensions
Inheritance
PhysicsWorldExtensions
Syntax
public static class PhysicsWorldExtensions
Methods
ApplyAngularImpulse(PhysicsWorld, Int32, float3)
Declaration
public static void ApplyAngularImpulse(this PhysicsWorld world, int rigidBodyIndex, float3 angularImpulse)
Parameters
Type |
Name |
Description |
PhysicsWorld |
world |
|
Int32 |
rigidBodyIndex |
|
Unity.Mathematics.float3 |
angularImpulse |
|
ApplyImpulse(PhysicsWorld, Int32, float3, float3)
Declaration
public static void ApplyImpulse(this PhysicsWorld world, int rigidBodyIndex, float3 linearImpulse, float3 point)
Parameters
Type |
Name |
Description |
PhysicsWorld |
world |
|
Int32 |
rigidBodyIndex |
|
Unity.Mathematics.float3 |
linearImpulse |
|
Unity.Mathematics.float3 |
point |
|
ApplyLinearImpulse(PhysicsWorld, Int32, float3)
Declaration
public static void ApplyLinearImpulse(this PhysicsWorld world, int rigidBodyIndex, float3 linearImpulse)
Parameters
Type |
Name |
Description |
PhysicsWorld |
world |
|
Int32 |
rigidBodyIndex |
|
Unity.Mathematics.float3 |
linearImpulse |
|
CalculateVelocityToTarget(PhysicsWorld, Int32, float3, quaternion, Single, out float3, out float3)
Declaration
public static void CalculateVelocityToTarget(this PhysicsWorld world, int rigidBodyIndex, float3 targetPosition, quaternion targetOrientation, float timeStep, out float3 requiredLinearVelocity, out float3 requiredAngularVelocity)
Parameters
Type |
Name |
Description |
PhysicsWorld |
world |
|
Int32 |
rigidBodyIndex |
|
Unity.Mathematics.float3 |
targetPosition |
|
Unity.Mathematics.quaternion |
targetOrientation |
|
Single |
timeStep |
|
Unity.Mathematics.float3 |
requiredLinearVelocity |
|
Unity.Mathematics.float3 |
requiredAngularVelocity |
|
GetAngularVelocity(PhysicsWorld, Int32)
Declaration
public static float3 GetAngularVelocity(this in PhysicsWorld world, int rigidBodyIndex)
Parameters
Returns
Type |
Description |
Unity.Mathematics.float3 |
|
GetCenterOfMass(PhysicsWorld, Int32)
Declaration
public static float3 GetCenterOfMass(this in PhysicsWorld world, int rigidBodyIndex)
Parameters
Returns
Type |
Description |
Unity.Mathematics.float3 |
|
GetCollisionFilter(PhysicsWorld, Int32)
Declaration
public static CollisionFilter GetCollisionFilter(this in PhysicsWorld world, int rigidBodyIndex)
Parameters
Returns
GetEffectiveMass(PhysicsWorld, Int32, float3, float3)
Declaration
public static float GetEffectiveMass(this in PhysicsWorld world, int rigidBodyIndex, float3 impulse, float3 point)
Parameters
Type |
Name |
Description |
PhysicsWorld |
world |
|
Int32 |
rigidBodyIndex |
|
Unity.Mathematics.float3 |
impulse |
|
Unity.Mathematics.float3 |
point |
|
Returns
GetLinearVelocity(PhysicsWorld, Int32)
Declaration
public static float3 GetLinearVelocity(this in PhysicsWorld world, int rigidBodyIndex)
Parameters
Returns
Type |
Description |
Unity.Mathematics.float3 |
|
GetLinearVelocity(PhysicsWorld, Int32, float3)
Declaration
public static float3 GetLinearVelocity(this in PhysicsWorld world, int rigidBodyIndex, float3 point)
Parameters
Type |
Name |
Description |
PhysicsWorld |
world |
|
Int32 |
rigidBodyIndex |
|
Unity.Mathematics.float3 |
point |
|
Returns
Type |
Description |
Unity.Mathematics.float3 |
|
GetMass(PhysicsWorld, Int32)
Declaration
public static float GetMass(this in PhysicsWorld world, int rigidBodyIndex)
Parameters
Returns
GetPosition(PhysicsWorld, Int32)
Declaration
public static float3 GetPosition(this in PhysicsWorld world, int rigidBodyIndex)
Parameters
Returns
Type |
Description |
Unity.Mathematics.float3 |
|
GetRigidBodyIndex(PhysicsWorld, Entity)
Declaration
public static int GetRigidBodyIndex(this in PhysicsWorld world, Entity entity)
Parameters
Returns
GetRotation(PhysicsWorld, Int32)
Declaration
public static quaternion GetRotation(this in PhysicsWorld world, int rigidBodyIndex)
Parameters
Returns
Type |
Description |
Unity.Mathematics.quaternion |
|
SetAngularVelocity(PhysicsWorld, Int32, float3)
Declaration
public static void SetAngularVelocity(this PhysicsWorld world, int rigidBodyIndex, float3 angularVelocity)
Parameters
Type |
Name |
Description |
PhysicsWorld |
world |
|
Int32 |
rigidBodyIndex |
|
Unity.Mathematics.float3 |
angularVelocity |
|
SetLinearVelocity(PhysicsWorld, Int32, float3)
Declaration
public static void SetLinearVelocity(this PhysicsWorld world, int rigidBodyIndex, float3 linearVelocity)
Parameters
Type |
Name |
Description |
PhysicsWorld |
world |
|
Int32 |
rigidBodyIndex |
|
Unity.Mathematics.float3 |
linearVelocity |
|