Table of Contents

Struct AttachmentHelper

Namespace
VoxelPlayground.Gaming
Assembly
GamePlay.dll
[Serializable]
public struct AttachmentHelper

Fields

jointData

public JointInfoData jointData

Field Value

JointInfoData

jointlimitCount

public int jointlimitCount

Field Value

int

Properties

Joints

public List<Joint> Joints { get; }

Property Value

List<Joint>

MyAttachPointList

public List<Vector3?> MyAttachPointList { get; }

Property Value

List<Vector3?>

MyAttachVoxelClosestPointList

public List<Vector3> MyAttachVoxelClosestPointList { get; }

Property Value

List<Vector3>

PosLocal_self_target

public List<Vector3> PosLocal_self_target { get; }

Property Value

List<Vector3>

PosLocal_target_self

public List<Vector3> PosLocal_target_self { get; }

Property Value

List<Vector3>

RotLocal_self_target

public List<Quaternion> RotLocal_self_target { get; }

Property Value

List<Quaternion>

RotLocal_target_self

public List<Quaternion> RotLocal_target_self { get; }

Property Value

List<Quaternion>

TargetAttachPointList

public List<Vector3?> TargetAttachPointList { get; }

Property Value

List<Vector3?>

TargetAttachVoxelClosestPointList

public List<Vector3> TargetAttachVoxelClosestPointList { get; }

Property Value

List<Vector3>

Methods

AddJoint(Rigidbody, Rigidbody, Vector3?, Vector3?, Vector3?)

public Joint AddJoint(Rigidbody selfRb, Rigidbody targetRb, Vector3? jointAnchorPos_WS, Vector3? myAttachPoint = null, Vector3? targetAttachPoint = null)

Parameters

selfRb Rigidbody
targetRb Rigidbody
jointAnchorPos_WS Vector3?
myAttachPoint Vector3?
targetAttachPoint Vector3?

Returns

Joint

CanAddJoint()

public bool CanAddJoint()

Returns

bool

GetFirstJoint()

public Joint GetFirstJoint()

Returns

Joint

GetMyAttachPoint(Joint)

public Vector3? GetMyAttachPoint(Joint joint)

Parameters

joint Joint

Returns

Vector3?

GetMyAttachVoxelClosestPoint(Joint)

public Vector3 GetMyAttachVoxelClosestPoint(Joint joint)

Parameters

joint Joint

Returns

Vector3

GetPosLocal_self_target(Joint)

public Vector3? GetPosLocal_self_target(Joint joint)

Parameters

joint Joint

Returns

Vector3?

GetPosLocal_target_self(Joint)

public Vector3? GetPosLocal_target_self(Joint joint)

Parameters

joint Joint

Returns

Vector3?

GetRotLocal_self_target(Joint)

public Quaternion? GetRotLocal_self_target(Joint joint)

Parameters

joint Joint

Returns

Quaternion?

GetRotLocal_target_self(Joint)

public Quaternion? GetRotLocal_target_self(Joint joint)

Parameters

joint Joint

Returns

Quaternion?

GetTargetAttachPoint(Joint)

public Vector3? GetTargetAttachPoint(Joint joint)

Parameters

joint Joint

Returns

Vector3?

GetTargetVoxelClosestPoint(Joint)

public Vector3 GetTargetVoxelClosestPoint(Joint joint)

Parameters

joint Joint

Returns

Vector3

LoadJointData(JointInfoData)

public void LoadJointData(JointInfoData data)

Parameters

data JointInfoData

RemoveAllJoints()

public void RemoveAllJoints()

RemoveEmptyJoint()

public void RemoveEmptyJoint()

RemoveJoint(Joint)

public void RemoveJoint(Joint joint)

Parameters

joint Joint