Phys motor: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (cleanup tag)
(cleaned up)
Line 1: Line 1:
{{cleanup}}
{{wrongtitle|title=phys_motor}}
 
phys_motor


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


KEYS
==Keyvalues==
 
*{{kv targetname}}
Name targetname <target_source> The name that other entities refer to this entity by.
*'''speed''' <string>  
 
:Angular speed (units are degress/second)
Rotation Speed speed <string> Angular speed (units are degress/second)
*'''spinup''' <string>
 
:Spin-up time in seconds (also affects the rate at which speed changes happen)
Spin up time spinup <string> spin up time in seconds (also affects the rate at which speed changes happen)
*'''inertiafactor''' <float>  
 
:System interia scale. Make this larger if the object being driven is constrained to a set of heavier objects.
System Interia Scale inertiafactor <float> Make this larger if the object being driven is constrained to a set of heavier objects.
*'''axis''' <[[vecline]]>
 
:Rotation axis
Rotation Axis axis <vecline>  
*'''attach1''' <target_destination>  
 
:Object to apply the force to
spawnflags spawnflags <flags>
 
Attached Object attach1 <target_destination> Object to apply the force to
 
 
INPUTS
 
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
 
 
OUTPUTS


OnUser1 Fired in response to FireUser1 input.
==Flags==
*1 : Start On
*2 : No world collision
:Disable world collisions on hinges
*4 : Hinge Object
:Motor also acts as a hinge constraining the object to this axis
*8 : Orient Locally
:Maintain local relationship with the attached object ([[FGD]] comment: "NOT WORKING YET")


OnUser2 Fired in response to FireUser2 input.
==Inputs==
*{{i targetname}}
*'''SetSpeed''' <float>
:Sets target speed
*'''TurnOn'''
:Turns motor on
*'''TurnOff'''
:Turns motor off


OnUser3 Fired in response to FireUser3 input.
==Outputs==
*{{o targetname}}


OnUser4 Fired in response to FireUser4 input.
[[Category:Entities]]

Revision as of 09:36, 4 October 2005

Template:Wrongtitle

Entity Description

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

Keyvalues

Angular speed (units are degress/second)
  • spinup <string>
Spin-up time in seconds (also affects the rate at which speed changes happen)
  • inertiafactor <float>
System interia scale. Make this larger if the object being driven is constrained to a set of heavier objects.
Rotation axis
  • attach1 <target_destination>
Object to apply the force to

Flags

  • 1 : Start On
  • 2 : No world collision
Disable world collisions on hinges
  • 4 : Hinge Object
Motor also acts as a hinge constraining the object to this axis
  • 8 : Orient Locally
Maintain local relationship with the attached object (FGD comment: "NOT WORKING YET")

Inputs

Sets target speed
  • TurnOn
Turns motor on
  • TurnOff
Turns motor off

Outputs