rigComponent 0.1.1
RigKit pack API - rigComponent
Loading...
Searching...
No Matches
rigkit::ecs::CAnchor Struct Reference

Cuboid cell that is local (0,0,0). More...

#include <rigComponent/src/CAnchor.h>

Public Member Functions

bool isDefault () const
 Top-left / min / zero offset - the Contract default, omit on the wire.
glm::vec2 faceOffsetMm (const glm::vec2 &size) const
 Offset from AABB min (x,y) to the named face cell.
float heightOffsetMm (float minZ, float maxZ) const
 Z of the cuboid cell between minZ and maxZ.
glm::vec3 originMm (const glm::vec3 &bmin, const glm::vec3 &bmax) const
 Local origin inside [bmin, bmax], including offset.

Detailed Description

Cuboid cell that is local (0,0,0).

Speaks rig.spatial.anchor.

point is the 3×3 face, height the Z slice (min / center / max), offset a local XY nudge after the cell. Axes stay +X +Y +Z - this is an offset into the entity AABB, not a sign flip. Absent component means no remap (pages stay top-left / min). Not CFontAnchor.

Member Function Documentation

◆ heightOffsetMm()

float rigkit::ecs::CAnchor::heightOffsetMm ( float minZ,
float maxZ ) const
inline

Z of the cuboid cell between minZ and maxZ.

Absent height = min.


The documentation for this struct was generated from the following file:
  • packs/rigComponent/src/CAnchor.h