Exemple #1
0
 public override void SpawnBody()
 {
     base.SpawnBody();
     Motion = new PlaneMotionConstraint(this);
     TheRegion.PhysicsWorld.Add(Motion);
     Wings = new JointFlyingDisc(this)
     {
         IsAPlane = true
     };
     TheRegion.AddJoint(Wings);
     HandleWheels();
 }
Exemple #2
0
 public void TurnIntoPlane(PlayerEntity pilot) // TODO: Character!
 {
     PlanePilot = pilot;
     Plane = new PlaneMotionConstraint(this);
     TheRegion.PhysicsWorld.Add(Plane);
     foreach (InternalBaseJoint joint in Joints) // TODO: Just track this detail on the joint itself ffs
     {
         if (joint is JointFlyingDisc)
         {
             ((FlyingDiscConstraint)((JointFlyingDisc)joint).CurrentJoint).IsAPlane = true;
         }
     }
 }
Exemple #3
0
 public override void SpawnBody()
 {
     base.SpawnBody();
     Body.LinearDamping = 0.0;
     HandleWheels();
     Motion = new PlaneMotionConstraint(this);
     TheRegion.PhysicsWorld.Add(Motion);
     Wings = new JointFlyingDisc(this)
     {
         IsAPlane = true
     };
     TheRegion.AddJoint(Wings);
     (Wings.CurrentJoint as FlyingDiscConstraint).PlaneLiftHelper = LiftHelper;
 }
Exemple #4
0
 public override void SpawnBody()
 {
     base.SpawnBody();
     Motion = new PlaneMotionConstraint(this);
     TheRegion.PhysicsWorld.Add(Motion);
     Wings = new JointFlyingDisc(this) { IsAPlane = true };
     TheRegion.AddJoint(Wings);
     HandleWheels();
 }
Exemple #5
0
 // TODO: Character!
 public void TurnIntoPlane(PlayerEntity pilot)
 {
     PlanePilot = pilot;
     Plane = new PlaneMotionConstraint(this);
     TheRegion.PhysicsWorld.Add(Plane);
     foreach (InternalBaseJoint joint in Joints) // TODO: Just track this detail on the joint itself ffs
     {
         if (joint is JointFlyingDisc)
         {
             ((FlyingDiscConstraint)((JointFlyingDisc)joint).CurrentJoint).IsAPlane = true;
         }
     }
 }