ModelEntity InitiateLetter(int letter) { ModelEntity letterModel = new ModelEntity(Game, TheCamera, WordXNAModels[letter]); letterModel.Moveable = false; letterModel.ModelScale = new Vector3(Scale); letterModel.PO.AddAsChildOf(this); return(letterModel); }
public Person(Game game, Camera camera, GameLogic gameLogic) : base(game, camera) { LogicRef = gameLogic; for (int i = 0; i < 2; i++) { Arms[i] = new ModelEntity(game, camera); Legs[i] = new ModelEntity(game, camera); } }
ModelEntity InitiateNumber(int number) { if (number < 0) { number = 0; } ModelEntity digit = new ModelEntity(Game, TheCamera, NumberModels[number]); digit.Moveable = false; digit.ModelScale = new Vector3(Scale); digit.PO.AddAsChildOf(this); return(digit); }
public Player(Game game, Camera camera, GameLogic gameLogic) : base(game, camera, gameLogic) { LogicRef = gameLogic; Camera swCamera = new Camera(game, new Vector3(0, 0, 100), new Vector3(0, MathHelper.Pi, 0), GraphicsDevice.Viewport.AspectRatio, 90f, 110f); TheSteeringWheel = new SteeringwheelUI(game, swCamera, gameLogic); Turret = new ModelEntity(game, camera); for (int i = 0; i < 2; i++) { FrontTires[i] = new ModelEntity(game, camera); RearTires[i] = new ModelEntity(game, camera); } }
void RemoveNumber(ModelEntity numberE) { NumberEntities.Remove(numberE); }