Beispiel #1
0
        public void ChildDebris(GameObject parent, Utf.Cmp.Part part, float mass, Vector3 initialforce)
        {
            var cp = new PhysicsComponent(parent)
            {
                SurPath  = this.SurPath,
                Mass     = mass,
                plainCrc = CrcTool.FLModelCrc(part.ObjectName),
            };

            DisablePart(part);
            parent.PhysicsComponent = cp;
            cp.Register(pworld);
            cp.Body.Impulse(initialforce);
            parent.Components.Add(cp);
        }
Beispiel #2
0
 public void DisablePart(Utf.Cmp.Part part)
 {
     sur.RemovePart(part);
     partRemoved = true;
 }
Beispiel #3
0
 public void DisablePart(Utf.Cmp.Part part)
 {
     sur.RemovePart(part);
     sur.FinishUpdatePart();
 }