Esempio n. 1
0
 public override float Speed(AJoint joint, float current)
 {
     return _motorControl.Speed(joint, current);
 }
Esempio n. 2
0
 public override float Speed(AJoint joint, float current)
 {
     return current + Math.Min(maxTorque, Math.Max(-maxTorque, goal - current));
 }
Esempio n. 3
0
 public override void Prepare(AJoint joint)
 {
     joint.Refs[0] = new Vector3((float)Math.Cos(Angle * sign), 0, (float)Math.Sin(Angle * sign));
 }
Esempio n. 4
0
 private void StoreAngularJointControlRef(AJoint.Specs specs)
 {
     if (specs.Control != null && specs.Control != AJoint.IControl.Default)
     {
         _aJointControls.Add(specs.Control);
     }
 }
Esempio n. 5
0
 public void AppendAngularJoint(AJoint.Specs specs, Cluster body0, Body body1)
 {
     StoreAngularJointControlRef(specs);
     btSoftBody_appendAngularJoint4(_native, specs._native, body0._native, body1._native);
 }
Esempio n. 6
0
 public void AppendAngularJoint(AJoint.Specs specs, SoftBody body)
 {
     StoreAngularJointControlRef(specs);
     btSoftBody_appendAngularJoint3(_native, specs._native, body._native);
 }
Esempio n. 7
0
 public virtual float Speed(AJoint aJoint, float current)
 {
     return current;
 }
Esempio n. 8
0
 public virtual void Prepare(AJoint aJoint)
 {
 }