Boneclass

A bone definition for use with `Sandbox.ModelBuilder`.

object→Bone
Namespace
global
Assembly
Sandbox.Engine
Declaration
public sealed struct Sandbox.ModelBuilder.Bone

Constructors1

Showing 1 constructors

public Bone(string Name, string ParentName, Vector3 Position, Rotation Rotation)PUBLICCONSTRUCTOR

A bone definition for use with `Sandbox.ModelBuilder`.

ParameterTypeDescription
NamestringName of the bone.
ParentNamestringName of the parent bone, or empty for a root bone.
PositionVector3Position of the bone, relative to its parent.
RotationRotationRotation of the bone, relative to its parent.

Methods1

Showing 1 methods

public void Deconstruct(string Name, string ParentName, Vector3 Position, Rotation Rotation)PUBLIC

ParameterTypeDescription
Namestring—
ParentNamestring—
PositionVector3—
RotationRotation—
Returns:void—

Properties5

Showing 5 properties

public System.Nullable`1<BBox> Sandbox.ModelBuilder.Bone.Bounds { get; set; }PUBLICGETSET

Optional bone-local render bounds, defaulting to a zero-sized box at the bone origin.

Returns:Nullable<BBox>—

public string Sandbox.ModelBuilder.Bone.Name { get; set; }PUBLICGETSET

Name of the bone.

Returns:string—

public string Sandbox.ModelBuilder.Bone.ParentName { get; set; }PUBLICGETSET

Name of the parent bone, or empty for a root bone.

Returns:string—

On this page