Scripting API
Scripting API
ModelNode
Record in Abyss.Core.Scenes, from Abyss.Core.
One node of a model: an entity of its prefab.
public record ModelNodeConstructors
ModelNode
public ModelNode(string Name, Vector3 Translation, Quaternion Rotation, Vector3 Scale, int? Mesh, IReadOnlyList<int> Children)One node of a model: an entity of its prefab.
Parameters
Name: What the file calls it, orGltfNode3, as Bevy's loader names one it does not.Translation: Where it is in its parent, its axes turned and its Scale Factor applied as the import's were.Rotation: How it is turned in its parent.Scale: How it is scaled in its parent.Mesh: The mesh it draws, by index intoModelDescription.Meshes.Children: Its children, by index intoModelDescription.Nodes.
Properties
Name
public string Name { get; init; }What the file calls it, or GltfNode3, as Bevy's loader names one it does not.
Translation
public Vector3 Translation { get; init; }Where it is in its parent, its axes turned and its Scale Factor applied as the import's were.
Rotation
public Quaternion Rotation { get; init; }How it is turned in its parent.
Scale
public Vector3 Scale { get; init; }How it is scaled in its parent.
Mesh
public int? Mesh { get; init; }The mesh it draws, by index into ModelDescription.Meshes.
Children
public IReadOnlyList<int> Children { get; init; }Its children, by index into ModelDescription.Nodes.
