Velocity
Build |
1125 |
Version |
5.1 |
The velocity command applies speed onto a physical object given in a direction vector (x y z) and optionally a rotation speed vector (pitch yaw and roll). The direction of the speed is given in world coordinates, unless the option ltm is used. The rotation causes a spin around the object's own geometric center.
Usage
velocity x y z [pitch yaw roll] [ltm]
x y z
The speed into the direction of the 3D axes. The actual applied direction depends if ltm was used.
pitch yaw roll
The speed of the rotations around the 3D axes. The actual rotation axes depend if ltm was used.
ltm
The optional ltm statement sets to use the object's local space insteed of the world global coordinate space.
Examples
activate velocity 30 0 0 10 0 10
When the user clicks the object, it will sets a speed of 30 meters per second onto the object and it will start to move to the west. It also applies a rotation speed onto the object, causing it to rotate around the x, west-east, and z, north-south, axes.
Notes
- If an applied velocity is too great, the object may clip through other physical objects instead of colliding.
See also
Velocity at Wikipedia.
|
|
Triggers: Create • Bump • Activate • Adone • At • Collide • Sdone • Enter Zone • Exit Zone Commands: Addforce • Addtorque • Alpharef • Animate • Astart • Astop • Camera • Collider • Colltag • Color • Corona • Envi • Examine • Frame • Group • Light • Link • Lock • Matfx • Media • Midi • Move • Name • Noise • Opacity • Picture • Rotate • Say • Scale • Seq • Shadow • Shear • Sign • Skew • Skybox • Solid • Sound • Tag • Teleport / Teleportx • Texture • Timer • URL • Velocity • Visible • Warp • Web |