b3dRotateEntity

Sets entity rotation in degrees (modifies transform, routes to physics if body attached). Takes entity (entity handle), pitch (rotation around X-axis in degrees), yaw (rotation around Y-axis in degrees), roll (rotation around Z-axis in degrees). Returns nothing.

3D Graphics

Parameters & Returns

Parameters

entity Int
pitch Double
yaw Double
roll Double

Returns

Void

Quick Summary

Sets entity rotation in degrees (modifies transform, routes to physics if body attached). Takes entity (entity handle), pitch (rotation around X-axis in degrees), yaw (rotation around Y-axis in degrees), roll (rotation around Z-axis in degrees). Returns nothing.

Technical Exegesis...

Sets entity rotation in degrees (modifies transform, routes to physics if body attached). Takes entity (entity handle), pitch (rotation around X-axis in degrees), yaw (rotation around Y-axis in degrees), roll (rotation around Z-axis in degrees). Returns nothing. Validates entity exists, if physicsBodyHandle!=0 routes to b3dSetPhysicsBodyRotation for physics-driven rotation, otherwise sets entity.rotation=XMFLOAT3(pitch, yaw, roll), marks worldMatrixDirty=true to trigger matrix recalculation.

Example

Example.bam
; No example implemented yet