updateBaseWorld() public method

public updateBaseWorld ( Vector3 position, Vector3 rotation, Vector3 scale, Matrix baseWorld ) : void
position Vector3
rotation Vector3
scale Vector3
baseWorld Matrix
return void
Example #1
0
        /// <summary>
        /// Allows the game component to update itself.
        /// </summary>
        /// <param name="gameTime">Provides a snapshot of timing values.</param>
        public override void Update(GameTime gameTime)
        {
            // Calculate the base transformation by combining translation, rotation, and scaling
            cModel.updateBaseWorld(unit.position, unit.rotation, unit.scale, unit.baseWorld);

            unit.update(gameTime);
            base.Update(gameTime);
        }