Scripting

Search The Documentation:

  1. Home
  2. Docs
  3. Scripting
  4. Rigidbody
  5. setVelocity

setVelocity

Platform Compatibility

PC Mac OSX Oculus Quest
X X X

Set the velocity of rigidbody

Parameters:

  • vel
    • A string value for velocity in X,Y,Z

Example:

1
2
3
4
obj.setVelocity(vel)

--Also works as
obj.setVelocity(x, y, z)
Tags
Was this article helpful to you? Yes No

How can we help?