10using System.Collections;
20 for (
int i = 0; i <
bones.Length; ++i) {
21 if (
bones[i] !=
null) {
22 bones[i].GetComponent<Rigidbody>().maxAngularVelocity = Mathf.Infinity;
28 for (
int i = 0; i <
bones.Length; ++i) {
29 if (
bones[i] !=
null) {
31 CapsuleCollider capsule =
bones[i].GetComponent<CapsuleCollider>();
32 if (capsule !=
null) {
34 capsule.direction = 2;
35 bones[i].localScale =
new Vector3(1f/transform.lossyScale.x, 1f/transform.lossyScale.y, 1f/transform.lossyScale.z);
42 Rigidbody boneBody =
bones[i].GetComponent<Rigidbody>();
Quaternion GetBoneRotation(int bone_type)
Vector3 GetBoneCenter(int bone_type)
float GetBoneLength(int bone_type)
float GetBoneWidth(int bone_type)
override void UpdateFinger()