Type: public
Rect
Calculates the Rect to draw the projectile in for the next frame.
Parameter Name | Description |
---|---|
speed | The speed of the projectile. |
width | The width of the drawing canvas. |
height | The height of the drawing canvas. |
Returned Value: The Rect to draw the projectile in for the next frame - equals null if it can no longer be drawn within the given width/height.