Phys motor: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(cleaned up)
Line 6: Line 6:
==Keyvalues==
==Keyvalues==
*{{kv targetname}}
*{{kv targetname}}
*'''speed''' <string>  
*'''attach1'''
:Angular speed (units are degress/second)
: <target_destination> Object to apply the force to
*'''spinup''' <string>
*'''speed'''
:Spin-up time in seconds (also affects the rate at which speed changes happen)
: <float> Angular speed (units are degress/second)
*'''inertiafactor''' <float>  
*'''spinup'''
:System interia scale. Make this larger if the object being driven is constrained to a set of heavier objects.
: <float> Spin-up time in seconds (also affects the rate at which speed changes happen)
*'''axis''' <[[vecline]]>
*'''inertiafactor'''
:Rotation axis
: <float> System interia scale. Make this larger if the object being driven is constrained to a set of heavier objects.
*'''attach1''' <target_destination>
*'''axis'''
:Object to apply the force to
: <[[vecline]]> Rotation axis


==Flags==
==Flags==

Revision as of 14:38, 4 October 2005

Template:Wrongtitle

Entity Description

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

Keyvalues

<target_destination> Object to apply the force to
  • speed
<float> Angular speed (units are degress/second)
  • 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
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