Class ComponentExtensions
Inheritance
System.Object
ComponentExtensions
Syntax
public static class ComponentExtensions
Methods
ApplyAngularImpulse(Entity, float3)
Declaration
public static void ApplyAngularImpulse(this Entity entity, float3 impulse)
Parameters
Type |
Name |
Description |
Entity |
entity |
|
float3 |
impulse |
|
ApplyAngularImpulse(ref PhysicsVelocity, PhysicsMass, float3)
Declaration
public static void ApplyAngularImpulse(this ref PhysicsVelocity velocityData, PhysicsMass massData, float3 impulse)
Parameters
ApplyImpulse(Entity, float3, float3)
Declaration
public static void ApplyImpulse(this Entity entity, float3 impulse, float3 point)
Parameters
Type |
Name |
Description |
Entity |
entity |
|
float3 |
impulse |
|
float3 |
point |
|
ApplyImpulse(ref PhysicsVelocity, PhysicsMass, Translation, Rotation, float3, float3)
Declaration
public static void ApplyImpulse(this ref PhysicsVelocity pv, PhysicsMass pm, Translation t, Rotation r, float3 impulse, float3 point)
Parameters
ApplyLinearImpulse(Entity, float3)
Declaration
public static void ApplyLinearImpulse(this Entity entity, float3 impulse)
Parameters
Type |
Name |
Description |
Entity |
entity |
|
float3 |
impulse |
|
ApplyLinearImpulse(ref PhysicsVelocity, PhysicsMass, float3)
Declaration
public static void ApplyLinearImpulse(this ref PhysicsVelocity velocityData, PhysicsMass massData, float3 impulse)
Parameters
GetAngularVelocity(Entity)
Declaration
public static float3 GetAngularVelocity(this Entity entity)
Parameters
Type |
Name |
Description |
Entity |
entity |
|
Returns
GetAngularVelocity(PhysicsVelocity, PhysicsMass, Rotation)
Declaration
public static float3 GetAngularVelocity(this PhysicsVelocity velocityData, PhysicsMass massData, Rotation rotData)
Parameters
Returns
GetCenterOfMass(Entity)
Declaration
public static float3 GetCenterOfMass(this Entity entity)
Parameters
Type |
Name |
Description |
Entity |
entity |
|
Returns
GetCenterOfMass(PhysicsMass, Translation, Rotation)
Declaration
public static float3 GetCenterOfMass(PhysicsMass massData, Translation posData, Rotation rotData)
Parameters
Type |
Name |
Description |
PhysicsMass |
massData |
|
Translation |
posData |
|
Rotation |
rotData |
|
Returns
GetCollisionFilter(Entity)
Declaration
public static CollisionFilter GetCollisionFilter(this Entity entity)
Parameters
Type |
Name |
Description |
Entity |
entity |
|
Returns
GetEffectiveMass(Entity, float3, float3)
Declaration
public static float GetEffectiveMass(this Entity entity, float3 impulse, float3 point)
Parameters
Type |
Name |
Description |
Entity |
entity |
|
float3 |
impulse |
|
float3 |
point |
|
Returns
Type |
Description |
System.Single |
|
GetLinearVelocity(Entity)
Declaration
public static float3 GetLinearVelocity(this Entity entity)
Parameters
Type |
Name |
Description |
Entity |
entity |
|
Returns
GetLinearVelocity(Entity, float3)
Declaration
public static float3 GetLinearVelocity(this Entity entity, float3 point)
Parameters
Type |
Name |
Description |
Entity |
entity |
|
float3 |
point |
|
Returns
GetLinearVelocity(PhysicsVelocity, PhysicsMass, Translation, Rotation, float3)
Declaration
public static float3 GetLinearVelocity(this PhysicsVelocity velocityData, PhysicsMass massData, Translation posData, Rotation rotData, float3 point)
Parameters
Returns
GetMass(Entity)
Declaration
public static float GetMass(this Entity entity)
Parameters
Type |
Name |
Description |
Entity |
entity |
|
Returns
Type |
Description |
System.Single |
|
GetPosition(Entity)
Declaration
public static float3 GetPosition(this Entity entity)
Parameters
Type |
Name |
Description |
Entity |
entity |
|
Returns
GetRotation(Entity)
Declaration
public static quaternion GetRotation(this Entity entity)
Parameters
Type |
Name |
Description |
Entity |
entity |
|
Returns
Type |
Description |
quaternion |
|
GetVelocities(Entity, out float3, out float3)
Declaration
public static void GetVelocities(this Entity entity, out float3 linearVelocity, out float3 angularVelocity)
Parameters
Type |
Name |
Description |
Entity |
entity |
|
float3 |
linearVelocity |
|
float3 |
angularVelocity |
|
SetAngularVelocity(Entity, float3)
Declaration
public static void SetAngularVelocity(this Entity entity, float3 angularVelocity)
Parameters
Type |
Name |
Description |
Entity |
entity |
|
float3 |
angularVelocity |
|
SetAngularVelocity(ref PhysicsVelocity, PhysicsMass, Rotation, float3)
Declaration
public static void SetAngularVelocity(this ref PhysicsVelocity velocityData, PhysicsMass massData, Rotation rotData, float3 angularVelocity)
Parameters
SetLinearVelocity(Entity, float3)
Declaration
public static void SetLinearVelocity(this Entity entity, float3 linearVelocity)
Parameters
Type |
Name |
Description |
Entity |
entity |
|
float3 |
linearVelocity |
|
SetVelocities(Entity, float3, float3)
Declaration
public static void SetVelocities(this Entity entity, float3 linearVelocity, float3 angularVelocity)
Parameters
Type |
Name |
Description |
Entity |
entity |
|
float3 |
linearVelocity |
|
float3 |
angularVelocity |
|