Example #1
0
 public void ApplyConfig(GenEntityConfigTypes.Part part)
 {
     this.RelativeOrigin = new Vector3((float)part.Body.relTranslation.X,
                                       (float)part.Body.relTranslation.Y,
                                       (float)part.Body.relTranslation.Z);
     ApplyBoxConfig(part.Body.Skin.Box);
     ApplyTriangleConfig(part.Body.Skin.Triangles);
 }
Example #2
0
        public EntityPart(int id, Model model, GenEntityConfigTypes.Part part)
        {
            // TODO: Complete member initialization
            this.Id    = id;
            this.model = model;
            this.part  = part;
            body       = new Body();
            Skin       = new CollisionSkin(body);
            ApplyConfig(part);
            body.CollisionSkin = Skin;

            //use part config here
        }