Sets vehicle angular velocity (rotation speed) directly.
Takes vehicleHandle (vehicle from b3dCreateVehicle), vx/vy/vz (angular velocity in rad/sec around X/Y/Z axes).
Returns nothing.
3D Graphics
Parameters & Returns
Parameters
vehicleHandleInt
vxDouble
vyDouble
vzDouble
Returns
Void
Quick Summary
Sets vehicle angular velocity (rotation speed) directly.
Takes vehicleHandle (vehicle from b3dCreateVehicle), vx/vy/vz (angular velocity in rad/sec around X/Y/Z axes).
Returns nothing.
Technical Exegesis...
Sets vehicle angular velocity (rotation speed) directly. Takes vehicleHandle (vehicle created with b3dCreateVehicle and finalized), vx/vy/vz (angular velocity components in radians per second around world X/Y/Z axes). Returns nothing. Directly sets rotational velocity in Jolt physics body, causing immediate rotation speed change.
Sets vehicle angular velocity (rotation speed) directly. Takes vehicleHandle (vehicle created with b3dCreateVehicle and finalized), vx/vy/vz (angular velocity components in radians per second around world X/Y/Z axes). Returns nothing. Directly sets rotational velocity in Jolt physics body, causing immediate rotation speed change.
Angular velocity components: vx (rotation speed around X-axis in rad/sec, pitch rate, positive = pitching forward), vy (rotation speed around Y-axis in rad/sec, yaw rate, positive = spinning right), vz (rotation speed around Z-axis in rad/sec, roll rate, positive = rolling right). Conversion: degrees/sec to rad/sec multiply by π/180 (e.g., 90 deg/sec = 1.571 rad/sec).
Use cases: (1) Stop rotation (set all to 0 to halt spinning), (2) Reset vehicle orientation (stop tumbling after crash), (3) Scripted rotation (create specific rotation effect), (4) Stabilization (dampen unwanted rotation). Common patterns: stop spin (b3dSetVehicleAngularVelocity(vehicle, 0, 0, 0)), controlled spin (b3dSetVehicleAngularVelocity(vehicle, 0, 3.14, 0) for 180 deg/sec yaw).
Related: b3dApplyVehicleTorque applies torque (affects angular velocity over time), b3dSetVehicleInput controls steering (affects yaw through wheels).