| Package | org.MARS.dynamics.collision.fine.sat |
| Class | public class CircleAxisProjection |
| Inheritance | CircleAxisProjection AxisProjection |
This type is intimately tied to SAT collision detection. By projecting a circle onto an axis, we turn our collision detection, per axis, into a one-dimensional query.
See also
| Method | Defined by | ||
|---|---|---|---|
|
Creates a new CircleAxisProjection
| CircleAxisProjection | ||
![]() |
getDistance(projection:AxisProjection):Number
Gets a signed distance- negative indicates range overlap, zero indicates coincidence
and positive indicates a separation
| AxisProjection | |
| Method | Defined by | ||
|---|---|---|---|
|
Projects the circle onto the axis
| CircleAxisProjection | ||
| CircleAxisProjection | () | constructor |
public function CircleAxisProjection(circle:Circle, axis:Vector)Creates a new CircleAxisProjection
Parameterscircle:Circle — Circle to project onto axis
|
|
axis:Vector — axis to project onto
|
See also
| project | () | method |
protected function project(circle:Circle, axis:Vector):voidProjects the circle onto the axis
Parameterscircle:Circle — IBody to project
|
|
axis:Vector — Vector to project onto
|
See also