b3dSetPhysicsBodyRotation

Sets physics body orientation in degrees (pitch/yaw/roll, activates dynamic bodies). Takes bodyHandle (physics body from b3dCreatePhysicsBody), pitch (X-axis rotation in degrees), yaw (Y-axis rotation in degrees), roll (Z-axis rotation in degrees). Returns nothing.

3D Graphics

Parameters & Returns

Parameters

bodyHandle Int
pitch Double
yaw Double
roll Double

Returns

Void

Quick Summary

Sets physics body orientation in degrees (pitch/yaw/roll, activates dynamic bodies). Takes bodyHandle (physics body from b3dCreatePhysicsBody), pitch (X-axis rotation in degrees), yaw (Y-axis rotation in degrees), roll (Z-axis rotation in degrees). Returns nothing.

Technical Exegesis...

Sets physics body orientation in degrees (pitch/yaw/roll, activates dynamic bodies). Takes bodyHandle (physics body from b3dCreatePhysicsBody), pitch (X-axis rotation in degrees), yaw (Y-axis rotation in degrees), roll (Z-axis rotation in degrees). Returns nothing. Converts Euler angles to quaternion, sets Jolt body rotation instantly, activates dynamic bodies to recalculate collisions. Use for respawning, alignment, or manual orientation.

This function sets body rotation.

Example

Example.bam
; No example implemented yet