コード例 #1
0
ファイル: IKBoneSimple.cs プロジェクト: The5-1/Epos
 void init(string name, float length, float width, float thickness, IKBoneSimple parentBone)
 {
     this.name       = name;
     this.length     = length;
     this.width      = width;
     this.thickness  = thickness;
     this.parentBone = parentBone;
 }
コード例 #2
0
ファイル: IKSkeleton2.cs プロジェクト: The5-1/Epos
    protected IKChainTwoBone(string name) : base(name)
    {
        GameObject first_GO = new GameObject(name + "_first");

        first = first_GO.AddComponent <IKBoneSimple>();
        GameObject second_GO = new GameObject(name + "_second");

        second = second_GO.AddComponent <IKBoneSimple>();

        GameObject target_GO = new GameObject(name + "_target");

        target = target_GO.AddComponent <IKTarget2>();
        target.init(this);
    }