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