Class PhysicsWorldExtensions
Utility functions acting on a physics world.
Inherited Members
Namespace: Unity.Physics.Extensions
Assembly: solution.dll
Syntax
public static class PhysicsWorldExtensions
Methods
| Name | Description |
|---|---|
| ApplyAngularImpulse(PhysicsWorld, int, float3) | Apply an angular impulse to a rigidBodyIndex (in world space) |
| ApplyImpulse(PhysicsWorld, int, float3, float3) | Apply an impulse to a rigid body at a point (in world space) |
| ApplyLinearImpulse(PhysicsWorld, int, float3) | Apply a linear impulse to a rigid body (in world space) |
| CalculateVelocityToTarget(PhysicsWorld, int, RigidTransform, float, out float3, out float3) | Calculate a linear and angular velocity required to move the given rigid body to the given target transform in the given time step. |
| GetAngularVelocity(in PhysicsWorld, int) | Get the angular velocity of a rigid body around it's center of mass (in world space) |
| GetCenterOfMass(in PhysicsWorld, int) | Get the Rigid Bodies Center of Mass (in World Space) |
| GetCollisionFilter(in PhysicsWorld, int) | An in PhysicsWorld extension method that gets collision filter. |
| GetEffectiveMass(in PhysicsWorld, int, float3, float3) | Get the effective mass of a Rigid Body in a given direction and from a particular point (in World Space) |
| GetLinearVelocity(in PhysicsWorld, int) | Get the linear velocity of a rigid body (in world space) |
| GetLinearVelocity(in PhysicsWorld, int, float3) | Get the linear velocity of a rigid body at a given point (in world space) |
| GetMass(in PhysicsWorld, int) | An in PhysicsWorld extension method that gets the mass. |
| GetPosition(in PhysicsWorld, int) | An in PhysicsWorld extension method that gets a position of a body in World Space. |
| GetRotation(in PhysicsWorld, int) | An in PhysicsWorld extension method that gets a rotation. |
| SetAngularVelocity(PhysicsWorld, int, float3) | Set the angular velocity of a rigid body (in world space) |
| SetLinearVelocity(PhysicsWorld, int, float3) | Set the linear velocity of a rigid body (in world space) |