Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MoveCircle ¶
func MoveCircle(c Circle, v Vector, segs []Segment) (Circle, bool)
MoveCircle moves a circle with a given velocity, handling collision with segments. The second return value is true if the circle collided with a segment beneath it, otherwise it is false. This value can be used to decide if it is "on the ground."
func MoveEllipse ¶
func MoveEllipse(e Ellipse, v Vector, segs []Segment) (Ellipse, bool)
MoveEllipse moves an ellipse with a given velocity, handling collision with segments. The second return value is true if the ellipse collided with a segment beneath it, otherwise it is false. This value can be used to decide if it is "on the ground."
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.