Phys motor

From Valve Developer Community
Revision as of 14:52, 4 October 2005 by Mark WiseCarver (talk | contribs) (Please format)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


An entity that tries to spin a target entity at a particular speed.


Name targetname <target_source> The name that other entities refer to this entity by.

Rotation Speed speed <string> Angular speed (units are degress/second)

Spin up time spinup <string> spin up time in seconds (also affects the rate at which speed changes happen)

System Interia Scale inertiafactor <float> Make this larger if the object being driven is constrained to a set of heavier objects.

Rotation Axis axis <vecline>

spawnflags spawnflags <flags>

Attached Object attach1 <target_destination> Object to apply the force to


Kill Removes this entity from the world.

KillHierarchy Removes this entity and all its children from the world.

AddOutput <string> Adds an entity I/O connection to this entity. Format: <output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire (-1 == infinite)>. Very dangerous, use with care.

FireUser1 Causes this entity's OnUser1 output to be fired.

FireUser2 Causes this entity's OnUser2 output to be fired.

FireUser3 Causes this entity's OnUser3 output to be fired.

FireUser4 Causes this entity's OnUser4 output to be fired.

SetSpeed <float> Sets target speed

TurnOn Turns motor on

TurnOff Turns motor off


OnUser1 Fired in response to FireUser1 input.

OnUser2 Fired in response to FireUser2 input.

OnUser3 Fired in response to FireUser3 input.

OnUser4 Fired in response to FireUser4 input.