예제 #1
0
        public override void update(Clock clock, EventManager eventManager)
        {
            Vector3 bonePos = bone.getDerivedPosition();

            if (bonePos != lastPosition)
            {
                this.updateScale(bone.getDerivedScale());
                joint.setFrameOffsetA(bonePos + offset * Owner.Scale);
                lastPosition = bonePos;
            }
        }
        public override void update(Clock clock, EventManager eventManager)
        {
            Vector3 bonePos = bone.getDerivedPosition();

            if (bonePos != lastPosition)
            {
                Vector3 jointPos = tongueObject.Translation + bonePos + offset * bone.getDerivedScale() - joint.RigidBodyA.Owner.Translation;
                joint.setFrameOffsetA(jointPos);
                lastPosition = bonePos;

                rigidBody.setLocalScaling(bone.getDerivedScale());
            }
        }
예제 #3
0
 public void setOriginalPosition()
 {
     joint.setFrameOffsetA(originalPosition);
 }