RotateToAccurate
Introduction
The RotateToAccurate method creates and adds Instructions for rotating the argument PositionedObject to the argument rotation. The method takes three values as it can perform rotation on the X, Y, and Z rotation components.
Code Example
The following code creates and rotates a Sprite so that its rotation matches the angle from the Sprite to the Mouse when the user clicks the left button. Add the following using statements:
Add the following at class scope:
Add the following in Initialize after initializing FlatRedBall:
Add the following in Update:
Last updated