Scripting API

Scripting API

Placed

Record struct in Abyss.Core, from Abyss.Core.

A transform to give an entity, as the editor's handles ask for one.

public readonly record struct Placed

Remarks

Laid out as abyss_core::handle::Placed is, 48 bytes.

Constructors

Placed

public Placed(ulong Entity, Vector3 Translation, Quaternion Rotation, Vector3 Scale)

A transform to give an entity, as the editor's handles ask for one.

Parameters

  • Entity: The entity, packed as the engine packs one.
  • Translation: Where it is to be from its parent.
  • Rotation: How it is to be turned.
  • Scale: How it is to be scaled.

Laid out as abyss_core::handle::Placed is, 48 bytes.

Properties

Entity

public ulong Entity { get; init; }

The entity, packed as the engine packs one.

Translation

public Vector3 Translation { get; init; }

Where it is to be from its parent.

Rotation

public Quaternion Rotation { get; init; }

How it is to be turned.

Scale

public Vector3 Scale { get; init; }

How it is to be scaled.