Phys thruster: Difference between revisions
Jump to navigation
Jump to search
m (Inserted the KV ForceController template.) |
m (Some minor adjustments of the format.) |
||
Line 2: | Line 2: | ||
==Entity Description== | ==Entity Description== | ||
An entity 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. | An entity 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== | ==Keyvalues== | ||
Line 12: | Line 12: | ||
==Flags== | ==Flags== | ||
*1 : Start On | *1 : Start On | ||
:Thrust is on by default ( | :Thrust is on by default. (Will turn off after the time specified in ''forcetime''.) | ||
*2 : Apply Force | *2 : Apply Force | ||
:Apply linear force (if off, torque only) | :Apply linear force (if off, torque only) |
Revision as of 20:27, 27 March 2006
Entity Description
An entity 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
- <float> Force, in kg·in/s2. Will be integrated over time.
Flags
- 1 : Start On
- Thrust is on by default. (Will turn off after the time specified in forcetime.)
- 2 : Apply Force
- Apply linear force (if off, torque only)
- 4 : Apply Torque
- Apply rotational force (torque—if off, linear only)
- 8 : Orient Locally
- Maintain local relationship with the attached object
- 16 : Ignore Mass
- Impulse is independent of object's mass (impulse is acceleration, not force)
- 32 : Ignore Pos
Inputs
- Template:I targetname
- Activate
- Turn the force on
- Deactivate
- Turn the force off
- Scale <string>
- Set Force Scale