예제 #1
0
        public override SimElementDefinition saveToDefinition()
        {
            var definition = new BEPUikDistanceJointDefinition(Name);

            setupJointDefinition(definition);
            return(definition);
        }
예제 #2
0
 public BEPUikDistanceJoint(BEPUikBone connectionA, BEPUikBone connectionB, BEPUikDistanceJointDefinition definition, String name, SimObject instance)
     : base(connectionA, connectionB, name, instance)
 {
     joint = new IKDistanceJoint(connectionA.IkBone, connectionB.IkBone, connectionA.Owner.Translation.toBepuVec3(), connectionB.Owner.Translation.toBepuVec3());
     setupJoint(definition);
 }