CopyBone
A class in Root.Township, the global namespace.
Makes this object follow a Bone's local pose, by joint target, by moving its rigidbody, or by setting the transform.
- Listed in Global namespace: C to D
- Inherits or implements
MonoBehaviour - Derived types
CopyBoneGroup - Attributes
ExecuteInEditMode
Constructors
| Member | What it is |
|---|---|
CopyBone() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
14 private and internal fields
| Member | What it is |
|---|---|
private List<Bone> autoFind | Bones list, probably for an editor auto-assign. Not read here. |
private Bone bone | Bone to copy. |
private Transform boneTransform | Transform of bone. |
private Transform cachedTransform | This object's transform. |
private bool isJointed | True when a ConfigurableJoint was found. |
private bool isPreviewingPose | Serialized but not read here. |
private bool isRigidbody | True when this object has a rigidbody. |
private bool isTransformForced | Always copy the transform directly even with a rigidbody. |
private ConfigurableJoint joint | The configurable joint on this object. |
private Quaternion jointToWorld | Inverse of worldToJoint. |
private float maximumTorque | Serialized but not read here. |
private Rigidbody topic | The rigidbody on this object. |
private float torqueMultiplier | Serialized but not read here. |
private Quaternion worldToJoint | Rotation into the joint's space. |