Skip to main content

TransformBone

A class in Root.Township, the global namespace.

Sets a fixed local position, rotation and scale on one bone of a character dummy's rig when it wakes.

Constructors​

MemberWhat it is
TransformBone()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

5 private and internal fields
MemberWhat it is
private BoneIdentifier boneWhich bone to move.
private CharacterDummyPointer dummyPointer to the character dummy that owns the rig.
private Vector3 positionLocal position to set.
private Vector3 rotationLocal rotation to set, as Euler angles.
private Vector3 scaleLocal scale to set.

Methods​

MemberWhat it is
void Move()Looks up the bone on the dummy's rig map and applies the stored local position, rotation and scale.
1 private and internal method
MemberWhat it is
private void Awake()Calls Move.