Table of Contents

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

float

AngularKineticFriction

public float AngularKineticFriction

Field Value

float

AngularStaticFriction

public float AngularStaticFriction

Field Value

float

AngularVelocity

public Vector3 AngularVelocity

Field Value

Vector3

Awake

public bool Awake

Field Value

bool

DisableRotation

public bool DisableRotation

Field Value

bool

KineticFriction

public float KineticFriction

Field Value

float

LinearDrag

public float LinearDrag

Field Value

float

Mass

public float Mass

Field Value

float

Resitution

public float Resitution

Field Value

float

StaticFriction

public float StaticFriction

Field Value

float

Velocity

public Vector3 Velocity

Field Value

Vector3

Methods

AddForce(Vector3, bool)

public void AddForce(Vector3 impulse, bool forceAwake = false)

Parameters

impulse Vector3
forceAwake bool

AddTorque(Vector3, bool)

public void AddTorque(Vector3 impulse, bool forceAwake = false)

Parameters

impulse Vector3
forceAwake bool

Clone(GameObject)

public override Component Clone(GameObject gameObject)

Parameters

gameObject GameObject

Returns

Component

Delete()

public override void Delete()

Integrate()

public void Integrate()

RespondToCollision(Vector3, Vector3, PhysicsComponent)

public void RespondToCollision(Vector3 contactPoint, Vector3 resolution, PhysicsComponent other)

Parameters

contactPoint Vector3
resolution Vector3
other PhysicsComponent

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.