Why use it
It provides direct, allocation-conscious access to the object model module. No exception-based error path is implied by the signature.
EPOK RUNTIME
Method · 1 overload
Sets local rotation as part of the object model module.
void set_local_rotation(Fixed x,Fixed y,Fixed z)Sets local rotation as part of the object model module.
| Parameter | Type | Meaning |
|---|---|---|
x | Fixed | Value supplied for x. Keep referenced or pointed-to data valid for the complete call. |
y | Fixed | Value supplied for y. Keep referenced or pointed-to data valid for the complete call. |
z | Fixed | Value supplied for z. Keep referenced or pointed-to data valid for the complete call. |
Returns: Nothing (void).
#include "object_model.hpp"
// Assume these named values have been initialized with valid data:
// Fixed x
// Fixed y
// Fixed z
epok::SceneComponent3D& object = /* obtain a valid instance */;
object.set_local_rotation(x, y, z);It provides direct, allocation-conscious access to the object model module. No exception-based error path is implied by the signature.
Call it only in the lifecycle phase described by the module. Validate indices, capacities and object state before use.
Declared in runtime/object_model.hpp:555
attach_slotPerforms `attach slot` as part of the object model module.Methodattach_toPerforms `attach to` as part of the object model module.Methodbind_localNo legacy slot: the component owns the transform.Methodbind_slotCanonical storage: the legacy entity slot owns the transform and everything that already reads it (collision, rendering, motion interpolation) keeps working.Methodclass_idPerforms `class id` as part of the object model module.Methodentity_slotPerforms `entity slot` as part of the object model module.Methodlocal_transformPerforms `local transform` as part of the object model module.Methodset_local_positionSets local position as part of the object model module.Methodset_local_scaleSets local scale as part of the object model module.Methodset_local_transformSets local transform as part of the object model module.MethodteleportPerforms `teleport` as part of the object model module.Methodworld_affinePerforms `world affine` as part of the object model module.Method