Class PhysicsComponent
- Namespace
- Crux.Components
- Assembly
- Crux.dll
public class PhysicsComponent : Component
- Inheritance
-
PhysicsComponent
- Inherited Members
Constructors
PhysicsComponent(GameObject)
public PhysicsComponent(GameObject gameObject)
Parameters
gameObject
GameObject
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
impulse
Vector3forceAwake
bool
AddTorque(Vector3, bool)
public void AddTorque(Vector3 impulse, bool forceAwake = false)
Parameters
impulse
Vector3forceAwake
bool
Clone(GameObject)
public override Component Clone(GameObject gameObject)
Parameters
gameObject
GameObject
Returns
Delete()
public override void Delete()
Integrate()
public void Integrate()
RespondToCollision(Vector3, Vector3, PhysicsComponent)
public void RespondToCollision(Vector3 contactPoint, Vector3 resolution, PhysicsComponent other)
Parameters
contactPoint
Vector3resolution
Vector3other
PhysicsComponent
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.