b3dPositionEntity

Sets entity position in world space (modifies transform, routes to physics if body attached). Takes entity (entity handle), x (world X coordinate), y (world Y coordinate - positive up), z (world Z coordinate). Returns nothing.

3D Graphics

Parameters & Returns

Parameters

entity Int
x Double
y Double
z Double

Returns

Void

Quick Summary

Sets entity position in world space (modifies transform, routes to physics if body attached). Takes entity (entity handle), x (world X coordinate), y (world Y coordinate - positive up), z (world Z coordinate). Returns nothing.

Technical Exegesis...

Sets entity position in world space (modifies transform, routes to physics if body attached). Takes entity (entity handle), x (world X coordinate), y (world Y coordinate - positive up), z (world Z coordinate). Returns nothing. Validates entity exists, if physicsBodyHandle!=0 routes to b3dSetPhysicsBodyPosition for physics-driven positioning, otherwise sets entity.position with Y-axis negation (user +Y=up, internal -Y=up), marks worldMatrixDirty=true to trigger matrix recalculation.

Example

Example.bam
; No example implemented yet