b3dPointEntityAt

Orients entity to face target entity (entity-based look-at with roll control). Takes entity (source entity handle), targetEntity (target entity handle), roll (target roll angle in degrees), transition (interpolation factor 0.0-1.0). Returns nothing.

3D Graphics

Parameters & Returns

Parameters

entity Int
targetEntity Int
roll Double
transition Double

Returns

Void

Quick Summary

Orients entity to face target entity (entity-based look-at with roll control). Takes entity (source entity handle), targetEntity (target entity handle), roll (target roll angle in degrees), transition (interpolation factor 0.0-1.0). Returns nothing.

Technical Exegesis...

Orients entity to face target entity (entity-based look-at with roll control). Takes entity (source entity handle), targetEntity (target entity handle), roll (target roll angle in degrees), transition (interpolation factor 0.0-1.0). Returns nothing. Validates both entities exist, calculates direction vector (target.position - entity.position), normalizes direction, calculates pitch/yaw from direction, interpolates rotation with angle wrapping for yaw, interpolates roll, marks worldMatrixDirty=true.

Example

Example.bam
; No example implemented yet