b3dTurnEntity

Rotates entity by relative angles (adds to current rotation, incremental turn). Takes entity (entity handle), pitch (pitch delta in degrees), yaw (yaw delta in degrees), roll (roll delta in degrees). Returns nothing.

3D Graphics

Parameters & Returns

Parameters

entity Int
pitch Double
yaw Double
roll Double

Returns

Void

Quick Summary

Rotates entity by relative angles (adds to current rotation, incremental turn). Takes entity (entity handle), pitch (pitch delta in degrees), yaw (yaw delta in degrees), roll (roll delta in degrees). Returns nothing.

Technical Exegesis...

Rotates entity by relative angles (adds to current rotation, incremental turn). Takes entity (entity handle), pitch (pitch delta in degrees), yaw (yaw delta in degrees), roll (roll delta in degrees). Returns nothing. Validates entity exists, if physicsBodyHandle!=0 calculates new rotation (current + delta) and routes to b3dSetPhysicsBodyRotation, otherwise adds deltas to entity.rotation and marks worldMatrixDirty=true. Relative rotation (incremental, not absolute).

Example

Example.bam
; No example implemented yet