SceneAnchorclass
A serializable transform that is either absolute in world space, or local to a GameObject so it follows that object. It carries position and rotation - so it can describe a direction or a frame as well as a location. Resolve it with `Sandbox.SceneAnchor.ToWorld`. Implicitly constructible from a `Vector3` (a world position) or a `Transform` (a world transform).
Methods1
Showing 1 methods
No results match this filter.
Properties5
Showing 5 properties
public bool Sandbox.SceneAnchor.IsAnchored { get; set; }
True when this anchor is attached to a valid object.
bool—public Vector3 Sandbox.SceneAnchor.LocalPosition { get; set; }
Position - in world space when `Sandbox.SceneAnchor.Parent` is null, otherwise local to it.
public Rotation Sandbox.SceneAnchor.LocalRotation { get; set; }
Rotation - in world space when `Sandbox.SceneAnchor.Parent` is null, otherwise local to it.
public Sandbox.GameObject Sandbox.SceneAnchor.Parent { get; set; }
The object this anchor is attached to, or null for a fixed world-space anchor. When set, `Sandbox.SceneAnchor.LocalPosition` and `Sandbox.SceneAnchor.LocalRotation` are interpreted relative to it.
public Vector3 Sandbox.SceneAnchor.Position { get; set; }
The resolved world-space position.
No results match this filter.