Class PhysicsComponent
- Namespace
- Crux.Components
- Assembly
- Crux.dll
public class PhysicsComponent : Component
- Inheritance
-
PhysicsComponent
- Inherited Members
Constructors
PhysicsComponent(GameObject)
public PhysicsComponent(GameObject gameObject)
Parameters
gameObjectGameObject
Fields
AngularDrag
public float AngularDrag
Field Value
AngularKineticFriction
public float AngularKineticFriction
Field Value
AngularStaticFriction
public float AngularStaticFriction
Field Value
AngularVelocity
public Vector3 AngularVelocity
Field Value
- Vector3
Awake
public bool Awake
Field Value
DisableRotation
public bool DisableRotation
Field Value
KineticFriction
public float KineticFriction
Field Value
LinearDrag
public float LinearDrag
Field Value
Mass
public float Mass
Field Value
Resitution
public float Resitution
Field Value
StaticFriction
public float StaticFriction
Field Value
Velocity
public Vector3 Velocity
Field Value
- Vector3
Methods
AddForce(Vector3, bool)
public void AddForce(Vector3 impulse, bool forceAwake = false)
Parameters
impulseVector3forceAwakebool
AddTorque(Vector3, bool)
public void AddTorque(Vector3 impulse, bool forceAwake = false)
Parameters
impulseVector3forceAwakebool
Clone(GameObject)
public override Component Clone(GameObject gameObject)
Parameters
gameObjectGameObject
Returns
Delete()
public override void Delete()
Integrate()
public void Integrate()
RespondToCollision(Vector3, Vector3, PhysicsComponent)
public void RespondToCollision(Vector3 contactPoint, Vector3 resolution, PhysicsComponent other)
Parameters
contactPointVector3resolutionVector3otherPhysicsComponent
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.