Trigger vphysics motion: Difference between revisions
Jump to navigation
Jump to search
m (Category:Physics) |
m (Cleanup) |
||
Line 1: | Line 1: | ||
{{ | {{hl2 brush|trigger_vphysics_motion}} | ||
{{sensor brush}} | |||
==Entity Description== | ==Entity Description== | ||
A [[brush entity]] [[trigger]] that affects the motion of [[VPhysics|vphysics]] objects that touch its volume. | A [[brush entity]] [[trigger]] that affects the motion of [[VPhysics|vphysics]] objects that touch its volume. | ||
{{ | {{code class|CTriggerVPhysicsMotion|triggers.cpp}} | ||
==Keyvalues== | ==Keyvalues== | ||
{{KV|Start Disabled|boolean}} | |||
{{KV|Filter Name|filterclass|Filter to use to see if activator triggers me. See filter_activator_name for more explanation.}} | |||
{{KV|Scale gravity of objects in the field.|float}} | |||
{{KV|Additional air density for drag|float}} | |||
{{KV|Max velocity in field (0 disables)|float}} | |||
{{KV|Max amount to reduce velocity per second when it exceeds the velocity limit (0 disables)|float}} | |||
{{KV|Velocity scale/drag|float}} | |||
{{KV|Max angular velocity in field (degrees/s, 0 disables)|float}} | |||
{{KV|Angular Velocity scale/drag|float}} | |||
{{KV|Linear force (0 disables)|float}} | |||
{{KV|Direction of linear force (Pitch Yaw Roll (Y Z X))|angle}} | |||
{{KV|Particle Trail Material|string|Name of a material to use for the particle trail, no name means no particle trail}} | |||
{{KV|Particle Trail Lifetime|float|Lifetime of the particles to emit}} | |||
{{KV|Particle Trail Starting Sprite Size|float|Starting size of the sprite to emit}} | |||
{{KV|Particle Trail Ending Sprite Size|float|Ending size of the sprite to emit}} | |||
==Flags== | ==Flags== | ||
{{Fl Trigger}} | |||
*4096 : Can move (through hierarchical attachment) | * 4096 : Can move (through hierarchical attachment) | ||
==Inputs== | ==Inputs== | ||
{{IO|SetGravityScale|Scale gravity of objects in the field.|param=float}} | |||
{{IO|SetAdditionalAirDensity|Additional air density for drag|param=float}} | |||
{{IO|SetVelocityLimit|Max velocity in field.|param=float}} | |||
{{IO|SetVelocityLimitDelta|Max amount to reduce velocity per second|param=float}} | |||
{{IO|SetVelocityLimitTime|Accepts two arguments: the first is the new velocity limit, the second is the time it takes to ramp to that value|param=string}} | |||
{{IO|SetVelocityScale|Velocity scale/drag|param=float}} | |||
{{IO|SetAngVelocityLimit|Max angular velocity in field.|param=float}} | |||
{{IO|SetAngVelocityScale|Angular Velocity scale/drag|param=float}} | |||
{{IO|SetLinearForce|Linear force (0 disables)|param=float}} | |||
{{IO|Enable|Enable the trigger.}} | |||
: | {{IO|Disable|Disable the trigger.}} | ||
{{IO|Toggle|Toggle enable/disable.}} | |||
{{I Trigger}} | |||
==Outputs== | ==Outputs== | ||
{{O Trigger}} | |||
[[Category:Physics]] | [[Category:Physics]] |
Revision as of 08:09, 3 June 2011
Entity Description
A brush entity trigger that affects the motion of vphysics objects that touch its volume.
Keyvalues
- Filter Name ([todo internal name (i)]) <filter>
- Filter to use to see if activator triggers me. See filter_activator_name for more explanation.
- Max amount to reduce velocity per second when it exceeds the velocity limit (0 disables) ([todo internal name (i)]) <float>
- Particle Trail Material ([todo internal name (i)]) <string>
- Name of a material to use for the particle trail, no name means no particle trail
- Particle Trail Starting Sprite Size ([todo internal name (i)]) <float>
- Starting size of the sprite to emit
- Particle Trail Ending Sprite Size ([todo internal name (i)]) <float>
- Ending size of the sprite to emit
Flags
|
- 4096 : Can move (through hierarchical attachment)
Inputs
- SetGravityScale <float >
- Scale gravity of objects in the field.
- SetAdditionalAirDensity <float >
- Additional air density for drag
- SetVelocityLimit <float >
- Max velocity in field.
- SetVelocityLimitDelta <float >
- Max amount to reduce velocity per second
- SetVelocityLimitTime <string >
- Accepts two arguments: the first is the new velocity limit, the second is the time it takes to ramp to that value
- SetVelocityScale <float >
- Velocity scale/drag
- SetAngVelocityLimit <float >
- Max angular velocity in field.
- SetAngVelocityScale <float >
- Angular Velocity scale/drag
- SetLinearForce <float >
- Linear force (0 disables)
- Enable
- Enable the trigger.
- Disable
- Disable the trigger.
- Toggle
- Toggle enable/disable.
|
Outputs
|