Phys motor: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(Cleanup)
Line 1: Line 1:
{{wrongtitle|title=phys_motor}}
{{base point|phys_motor}} It tries to spin a target entity at a particular speed.
{{base_point}}


==Entity Description==
== Keyvalues ==
An entity that tries to spin a target entity at a particular speed.
{{KV|Rotation Speed|string|Angular speed (units are degress/second)}}
{{KV|Spin up time|string|spin up time in seconds (also affects the rate at which speed changes happen)}}
{{KV|System Interia Scale|float|Make this larger if the object being driven is constrained to a set of heavier objects.}}
{{KV|Rotation Axis|vecline}}
{{KV|Attached Object|target_destination|Object to apply the force to}}
{{KV Targetname}}


==Keyvalues==
== Flags ==
*{{KV Targetname}}
* 1 : Start On
*'''attach1'''
* 2 : No world collision
: <target_destination> Object to apply the force to
: Disable world collisions on hinges  
*'''speed'''
* 4 : Hinge Object
: <float> Angular speed (units are degrees/second)
: Motor also acts as a hinge constraining the object to this axis
*'''spinup'''
: <float> 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.
*'''axis'''
: <[[vecline]]> Rotation axis
 
==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
*8 : Orient Locally
:Maintain local relationship with the attached object ([[FGD]] comment: "NOT WORKING YET")
: Maintain local relationship with the attached object ([[FGD]] comment: "NOT WORKING YET")


==Inputs==
== Inputs ==
*{{I Targetname}}
{{IO|SetSpeed|Sets target speed|param=float}}
*'''SetSpeed <float>'''
{{IO|TurnOn|Turns motor on}}
:Sets target speed
{{IO|TurnOff|Turns motor off}}
*'''TurnOn'''
{{I Targetname}}
:Turns motor on
*'''TurnOff'''
:Turns motor off


==Outputs==
== Outputs ==
*{{O Targetname}}
{{O Targetname}}

Revision as of 15:13, 27 July 2011

Template:Base point It tries to spin a target entity at a particular speed.

Keyvalues

Rotation Speed ([todo internal name (i)]) <string>
Angular speed (units are degress/second)
Spin up time ([todo internal name (i)]) <string>
spin up time in seconds (also affects the rate at which speed changes happen)
System Interia Scale ([todo internal name (i)]) <float>
Make this larger if the object being driven is constrained to a set of heavier objects.
Rotation Axis ([todo internal name (i)]) <vector>
Attached Object ([todo internal name (i)]) <targetname>
Object to apply the force to
Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

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

SetSpeed <floatRedirectInput/float>
Sets target speed
TurnOn
Turns motor on
TurnOff
Turns motor off


Outputs