b3dSetPhysicsBodyVelocity

Sets physics body linear velocity in units/sec (vx/vy/vz movement speed, affects position over time). Takes bodyHandle (physics body from b3dCreatePhysicsBody), vx/vy/vz (velocity components in world units per second). Returns nothing.

3D Graphics

Parameters & Returns

Parameters

bodyHandle Int
vx Double
vy Double
vz Double

Returns

Void

Quick Summary

Sets physics body linear velocity in units/sec (vx/vy/vz movement speed, affects position over time). Takes bodyHandle (physics body from b3dCreatePhysicsBody), vx/vy/vz (velocity components in world units per second). Returns nothing.

Technical Exegesis...

Sets physics body linear velocity in units/sec (vx/vy/vz movement speed, affects position over time). Takes bodyHandle (physics body from b3dCreatePhysicsBody), vx/vy/vz (velocity components in world units per second). Returns nothing. Sets Jolt linear velocity directly, affects body position in next physics update. Use for character movement, launching projectiles, or kinematic control.

This function sets movement velocity.

Example

Example.bam
; No example implemented yet