Endstar LUA API Documentation
Loading...
Searching...
No Matches
PhysicsComponent Class Reference

Component used for an object to take physics forces. More...

Public Member Functions

void AddImpulse (Context instigator, UnityEngine.Vector3 force, bool applyRandomTorque)
 Apply a physics force.
 
void AddImpulse (Context instigator, UnityEngine.Vector3 force)
 Apply a physics force.
 

Detailed Description

Component used for an object to take physics forces.

Member Function Documentation

◆ AddImpulse() [1/2]

void AddImpulse ( Context instigator,
UnityEngine.Vector3 force )

Apply a physics force.

Parameters
instigatorThe source context triggering this change
forceThe amount of force to apply, clamped between -50 and 50 per axis

◆ AddImpulse() [2/2]

void AddImpulse ( Context instigator,
UnityEngine.Vector3 force,
bool applyRandomTorque )

Apply a physics force.

Parameters
instigatorThe source context triggering this change
forceThe amount of force to apply, clamped between -50 and 50 per axis
applyRandomTorqueAdds a small amount of random torque for more free feeling interactions