This article's documentation is for anything that uses the Source engine. Click here for more information.

phys_thruster

From Valve Developer Community
Revision as of 11:50, 8 January 2024 by Thunder4ik (talk | contribs) (→‎See also: Unicodifying, replaced: See Also → See also)
Jump to navigation Jump to search

phys_thruster is a point entity available in all Source Source games. It is used to apply constant acceleration to a physics object. The force and torque is calculated using the position and direction of the thruster as an impulse. So moving those off the object's center will cause torque as well. Torque can be removed by unchecking the Apply Torque flag. The position of the thruster can be forced to be at the object's center by checking the Ignore Pos flag.

Keyvalues

Force (force) <string>
Force (will be integrated, units are force kg*in/s^2)
Pitch Yaw Roll (Y Z X) (angles) <QAngle>
This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.

ForceController:

Attached Object (attach1) <targetname>
Object to apply the force to.
Time of Force (0=inf) (forcetime) <float>
Automatic shut-off after this time has passed. A value of 0 means to stay on forever or until deactivated.


Flags

  • 32 : Ignore Pos

ForceController:

Start On : [1]
Thrust is on by default (will turn off in forcetime)
Apply Force : [2]
Apply linear force (if off, torque only)
Apply Torque : [4]
Apply rotational force (torque - if off, linear only)
Orient Locally : [8]
Maintain local relationship with the attached object
Ignore Mass : [16]
Impulse is independent of object's mass (impulse is acceleration NOT force)


Inputs

ForceController:

Activate
Turn the force on
Deactivate
Turn the force off
Scale <floatRedirectInput/float>
Set Force Scale


Outputs

ForceController:


See also