RotateToAccurate
Last updated
Was this helpful?
Last updated
Was this helpful?
The RotateToAccurate method creates and adds 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.
The following code creates and rotates a so that its rotation matches the angle from the to the 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: