public void DoMotion(MotionCommand motionCommand) { if (ViewObject != null) { ViewObject.DoMotion(motionCommand); } }
public void DoStance(MotionStance stance) { if (ViewObject != null) { ViewObject.DoStance(stance); } }
public void LoadEnvironment(uint envID) { ViewObject = null; Environment = new R_Environment(envID); ModelType = ModelType.Environment; }
public void InitObject(uint setupID) { ViewObject = new ViewObject(setupID); if (Setup.Setup._setup.DefaultScript != 0) { LoadScript(Setup.Setup._setup.DefaultScript); } }
public void Update(GameTime time) { if (ViewObject != null) { ViewObject.Update(time); } if (Camera != null) { Camera.Update(time); } var keyboardState = Keyboard.GetState(); if (keyboardState.IsKeyDown(Keys.OemPeriod) && !PrevKeyboardState.IsKeyDown(Keys.OemPeriod)) { PolyIdx++; Console.WriteLine($"PolyIdx: {PolyIdx}"); } if (keyboardState.IsKeyDown(Keys.OemComma) && !PrevKeyboardState.IsKeyDown(Keys.OemComma)) { PolyIdx--; Console.WriteLine($"PolyIdx: {PolyIdx}"); } if (keyboardState.IsKeyDown(Keys.OemQuestion) && !PrevKeyboardState.IsKeyDown(Keys.OemQuestion)) { PartIdx++; Console.WriteLine($"PartIdx: {PartIdx}"); } if (keyboardState.IsKeyDown(Keys.M) && !PrevKeyboardState.IsKeyDown(Keys.M)) { PartIdx--; Console.WriteLine($"PartIdx: {PartIdx}"); } }