Trigger vphysics motion: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
==Entity description== | ==Entity description== | ||
A [[brush entity]] [[trigger]] that affects the motion of [[VPhysics|VPhysics]] objects that touch its volume. Optionally, it can also | A [[brush entity]] [[trigger]] that affects the motion of [[VPhysics|VPhysics]] objects that touch its volume. Optionally, it can also create a particle trail. A particle trail, when parented, takes the shape of a model or brush. | ||
{{code class|CTriggerVPhysicsMotion|triggers.cpp}} | {{code class|CTriggerVPhysicsMotion|triggers.cpp}} |
Revision as of 02:57, 6 May 2018
Entity description
A brush entity trigger that affects the motion of VPhysics objects that touch its volume. Optionally, it can also create a particle trail. A particle trail, when parented, takes the shape of a model or brush.
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
|