Interface IPhysicsEngine
Assembly: Experior.Interfaces.dll
Syntax
public interface IPhysicsEngine : IEngine
Methods
Add(IDynamic)
Declaration
Parameters
Add(ISensor)
Declaration
Parameters
Add(IStatic)
Declaration
Parameters
AddForce(IDynamic, Vector3)
Declaration
void AddForce(IDynamic part, Vector3 force)
Parameters
Type |
Name |
Description |
IDynamic |
part |
|
System.Numerics.Vector3 |
force |
|
AddForceAtPosition(IDynamic, Vector3, Vector3)
Declaration
void AddForceAtPosition(IDynamic part, Vector3 force, Vector3 position)
Parameters
Type |
Name |
Description |
IDynamic |
part |
|
System.Numerics.Vector3 |
force |
|
System.Numerics.Vector3 |
position |
|
AddTorque(IDynamic, Vector3)
Declaration
void AddTorque(IDynamic part, Vector3 torque)
Parameters
Type |
Name |
Description |
IDynamic |
part |
|
System.Numerics.Vector3 |
torque |
|
Attached(IDynamic)
Declaration
void Attached(IDynamic part)
Parameters
Disable(IStatic)
Declaration
void Disable(IStatic part)
Parameters
Enable(IStatic)
Declaration
void Enable(IStatic part)
Parameters
GetActor(IRigidPart)
Declaration
object GetActor(IRigidPart part)
Parameters
Returns
Type |
Description |
System.Object |
|
GetAngularVelocity(IDynamic)
Declaration
Vector3 GetAngularVelocity(IDynamic part)
Parameters
Returns
Type |
Description |
System.Numerics.Vector3 |
|
GetCollision(IStatic)
Declaration
Collisions GetCollision(IStatic part)
Parameters
Returns
GetLinearVelocity(IDynamic)
Declaration
Vector3 GetLinearVelocity(IDynamic part)
Parameters
Returns
Type |
Description |
System.Numerics.Vector3 |
|
Declaration
void GetTransformation(IDynamic part, out Vector3 position, out Matrix4x4 orientation)
Parameters
Type |
Name |
Description |
IDynamic |
part |
|
System.Numerics.Vector3 |
position |
|
System.Numerics.Matrix4x4 |
orientation |
|
Group(IDynamic, IDynamic, Vector3, Matrix4x4)
Declaration
void Group(IDynamic part, IDynamic child, Vector3 position, Matrix4x4 orientation)
Parameters
Type |
Name |
Description |
IDynamic |
part |
|
IDynamic |
child |
|
System.Numerics.Vector3 |
position |
|
System.Numerics.Matrix4x4 |
orientation |
|
LogStatus(IDynamic)
Declaration
void LogStatus(IDynamic part)
Parameters
Remove(IRigidPart)
Declaration
void Remove(IRigidPart part)
Parameters
SetAngularDamping(IDynamic, Single)
Declaration
void SetAngularDamping(IDynamic part, float damping)
Parameters
Type |
Name |
Description |
IDynamic |
part |
|
System.Single |
damping |
|
SetAngularVelocity(IDynamic, Vector3)
Declaration
void SetAngularVelocity(IDynamic part, Vector3 velocity)
Parameters
Type |
Name |
Description |
IDynamic |
part |
|
System.Numerics.Vector3 |
velocity |
|
SetAngularVelocity(IElectricMotorPart, Vector3)
Declaration
void SetAngularVelocity(IElectricMotorPart part, Vector3 velocity)
Parameters
SetCenterOfMassOffsetLocalPosition(IDynamic, Vector3)
Declaration
void SetCenterOfMassOffsetLocalPosition(IDynamic part, Vector3 position)
Parameters
Type |
Name |
Description |
IDynamic |
part |
|
System.Numerics.Vector3 |
position |
|
SetCollision(IDynamic, Boolean)
Declaration
void SetCollision(IDynamic part, bool collision)
Parameters
Type |
Name |
Description |
IDynamic |
part |
|
System.Boolean |
collision |
|
SetCollision(IStatic, Collisions)
Declaration
void SetCollision(IStatic part, Collisions collision)
Parameters
SetDensity(IDynamic, Single)
Declaration
void SetDensity(IDynamic part, float density)
Parameters
Type |
Name |
Description |
IDynamic |
part |
|
System.Single |
density |
|
SetDirection(IDynamic, Vector3)
Declaration
void SetDirection(IDynamic part, Vector3 direction)
Parameters
Type |
Name |
Description |
IDynamic |
part |
|
System.Numerics.Vector3 |
direction |
|
SetDirection(IElectricMotorPart, Vector3)
Declaration
void SetDirection(IElectricMotorPart part, Vector3 direction)
Parameters
SetEqualAngularVelocity(IElectricMotorPart, Boolean)
Declaration
void SetEqualAngularVelocity(IElectricMotorPart part, bool value)
Parameters
SetFriction(IStatic, IFriction)
Declaration
void SetFriction(IStatic part, IFriction friction)
Parameters
SetKinematic(IDynamic, Boolean)
Declaration
void SetKinematic(IDynamic part, bool kinematic)
Parameters
Type |
Name |
Description |
IDynamic |
part |
|
System.Boolean |
kinematic |
|
SetKinematicTarget(IStatic, Matrix4x4)
Declaration
void SetKinematicTarget(IStatic part, Matrix4x4 transformation)
Parameters
Type |
Name |
Description |
IStatic |
part |
|
System.Numerics.Matrix4x4 |
transformation |
|
SetLinearDamping(IDynamic, Single)
Declaration
void SetLinearDamping(IDynamic part, float damping)
Parameters
Type |
Name |
Description |
IDynamic |
part |
|
System.Single |
damping |
|
SetLinearVelocity(IDynamic, Vector3)
Declaration
void SetLinearVelocity(IDynamic part, Vector3 velocity)
Parameters
Type |
Name |
Description |
IDynamic |
part |
|
System.Numerics.Vector3 |
velocity |
|
SetMotor(IElectricMotorPart, IElectricMotor)
Declaration
void SetMotor(IElectricMotorPart part, IElectricMotor motor)
Parameters
SetPosition(ISensor, Matrix4x4)
Declaration
void SetPosition(ISensor part, Matrix4x4 transformation)
Parameters
Type |
Name |
Description |
ISensor |
part |
|
System.Numerics.Matrix4x4 |
transformation |
|
SetSleepThreshold(IDynamic, Single)
Declaration
void SetSleepThreshold(IDynamic part, float threshold)
Parameters
Type |
Name |
Description |
IDynamic |
part |
|
System.Single |
threshold |
|
SetSpeedFactor(IElectricMotorPart, Single)
Declaration
void SetSpeedFactor(IElectricMotorPart part, float value)
Parameters
Declaration
void SetTransformation(IDynamic part, Vector3 position, Matrix4x4 orientation)
Parameters
Type |
Name |
Description |
IDynamic |
part |
|
System.Numerics.Vector3 |
position |
|
System.Numerics.Matrix4x4 |
orientation |
|
SetVerticalDirection(IElectricMotorCurveArea, Single, Single)
Declaration
void SetVerticalDirection(IElectricMotorCurveArea part, float radius, float heightdifference)
Parameters
Sleep(IDynamic)
Declaration
void Sleep(IDynamic part)
Parameters
UnAttached(IDynamic)
Declaration
void UnAttached(IDynamic part)
Parameters
UnGroup(IDynamic, IDynamic, Vector3, Matrix4x4)
Declaration
void UnGroup(IDynamic part, IDynamic child, Vector3 position, Matrix4x4 orientation)
Parameters
Type |
Name |
Description |
IDynamic |
part |
|
IDynamic |
child |
|
System.Numerics.Vector3 |
position |
|
System.Numerics.Matrix4x4 |
orientation |
|
WakeUp(IDynamic)
Declaration
void WakeUp(IDynamic part)
Parameters