IEntityTransforms.TryGetTransform method
Attempts to read the world position and facing of the entity identified by id. Returns false if the entity cannot be resolved this frame (despawned / not loaded / no game); in that case position is Zero and yawDegrees is 0.
public bool TryGetTransform(EntityId id, out Position3D position, out float yawDegrees)| parameter | description |
|---|---|
| id | The entity id (as seen on combat events / party roster). |
| position | World-space position on success. |
| yawDegrees | Facing in degrees [0,360) on success; 0 when facing is unavailable. |
Return Value
Section titled “Return Value”true if a live transform was read; otherwise false.
See Also
Section titled “See Also”- struct EntityId
- struct Position3D
- interface IEntityTransforms
- namespace Stellar.Abstractions.Services