Scripting API
Scripting API
Affine
Record struct in Abyss.Core, from Abyss.Core.
Where something is in the world, as Bevy's GlobalTransform holds it: three axes, scaled and turned as it is, and where its origin is.
public readonly record struct AffineRemarks
Laid out as the twelve numbers abyss_core::handle::Placement carries one in, 48 bytes.
Constructors
Affine
public Affine(Vector3 X, Vector3 Y, Vector3 Z, Vector3 Translation)Where something is in the world, as Bevy's GlobalTransform holds it: three axes, scaled and turned as it is, and where its origin is.
Parameters
X: Where its X axis points, as long as it is scaled along it.Y: Where its Y axis points.Z: Where its Z axis points.Translation: Where its origin is.
Laid out as the twelve numbers abyss_core::handle::Placement carries one in, 48 bytes.
Properties
X
public Vector3 X { get; init; }Where its X axis points, as long as it is scaled along it.
Y
public Vector3 Y { get; init; }Where its Y axis points.
Z
public Vector3 Z { get; init; }Where its Z axis points.
Translation
public Vector3 Translation { get; init; }Where its origin is.
Identity
public static Affine Identity { get; }The world's own axes, at its origin.
Matrix
public Matrix4x4 Matrix { get; }The same as a matrix, for Vector3.Transform: its rows are the axes and the translation.
Methods
Point
public Vector3 Point(Vector3 point)Where a point in its space is in the world's.
Parameters
point
Direction
public Vector3 Direction(Vector3 direction)Which way, and how far, a direction in its space goes in the world's: a point with no translation.
Parameters
direction
