public void addModel(string s, Model m) { this.modelPool.Add(s, m); CompositeModel waste = new CompositeModel(m, new Vector3(9999), Matrix.CreateRotationY(0f)); this.renderMaster.addModel(waste); waste = null; }
public Fireball(Vector3 vel, Player owner, CompositeModel model) : base(model) { this.velocity = vel; this.owner = owner; this.model = model; this.model.addCollisionCylinder(2f, 1f, Vector3.Up * 0.5f); this.model.addBoundingCylinder(2f, 1f, Vector3.Up * 0.5f); }
public Player(CompositeModel model, Camera camera, Controller controller) : base(model) { this.damage = 0; this.cam = camera; this.controller = controller; this.wizXZ = Vector2.Zero; this.wizXZvel = Vector2.Zero; this.wizVel = 0f; this.wizFloat = true; this.power = 1f; this.charging = false; this.color = this.model.CustomColor; bearing = 0; this.model.addCollisionCylinder(6.1f, 1f, Vector3.Up * 3.05f); this.model.addBoundingCylinder(6.1f, 1f, Vector3.Up * 3.05f); }
public CollisionEvent intersects(CompositeModel other) { return this.collisionCollection.intersects(other.collisionCollection); }
public void addModel(string s, CompositeModel m) { renderObjectLists[s].Add(m); }
public void addModel(CompositeModel m) { renderObjectLists["_master"].Add(m); }
public void removeModel(string s, CompositeModel m) { renderObjectLists[s].Remove(m); }
public void removeModel(CompositeModel m) { foreach (KeyValuePair<string, List<CompositeModel>> entry in renderObjectLists) { entry.Value.Remove(m); } }
public Obstacle(CompositeModel cm) : base(cm) { }
public Entity(CompositeModel model) { this.model = model; model.setEntity(this); }