Closed dresswithpockets closed 7 years ago
Since there is functionality here that doesn't necessarily apply to the concept of an AptObject, we're segregating transform functionality to its own class Transform
which will be instantiated by AptObject.
New values
float Rotation
gets or sets the current rotation of the object.Vector2 Up
gets the vector representing the up direction of the object after taking its rotation into consideration.Vector2 Left
gets the vector representing the left direction of the object after taking its rotation into consideration.Vector2 Right
gets the vector representing the right direction of the object after taking its rotation into consideration.Vector2 Down
gets the vector representing the down direction of the object after taking its rotation into consideration.New functionality
AptObject.Translate(vector2)
translates the object in a direction relative to its rotation.AptObject.Rotate(float)
rotates the object by the value given.