Phys thruster: Difference between revisions
Jump to navigation
Jump to search
m (cleanup tag) |
(cleaned up) |
||
Line 1: | Line 1: | ||
{{ | {{wrongtitle|title=phys_thruster}} | ||
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 ' | ==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== | |||
*{{kv targetname}} | |||
*{{kv angles}} | |||
*'''attach1''' | |||
:<target_destination> Object to apply the force to. | |||
*'''forcetime''' | |||
:<float> Automatic shut-off after this time has passed. A value of 0 means to stay on forever or until deactivated. | |||
*'''force''' | |||
:<float> Force, in kg·in/s<sup>2</sup>. Will be integrated over time. | |||
==Flags== | |||
*1 : Start On | |||
:Thrust is on by default (will turn off 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== | |||
*{{i targetname}} | |||
*'''Activate''' | |||
:Turn the force on | |||
*'''Deactivate''' | |||
:Turn the force off | |||
*'''Scale <string>''' | |||
:Set Force Scale | |||
==Outputs== | |||
*{{o targetname}} | |||
[[Category:Entities]] | |||
Revision as of 18:15, 5 October 2005
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
- <target_destination> Object to apply the force to.
- forcetime
- <float> Automatic shut-off after this time has passed. A value of 0 means to stay on forever or until deactivated.
- force
- <float> Force, in kg·in/s2. Will be integrated over time.
Flags
- 1 : Start On
- Thrust is on by default (will turn off 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