IShape is the interface for all collision shapes. Shapes in this package satisfy this interface and also geometry.Geometry.
| 9 | // IShape is the interface for all collision shapes. |
| 10 | // Shapes in this package satisfy this interface and also geometry.Geometry. |
| 11 | type IShape interface { |
| 12 | BoundingBox() math32.Box3 |
| 13 | BoundingSphere() math32.Sphere |
| 14 | Area() float32 |
| 15 | Volume() float32 |
| 16 | RotationalInertia(mass float32) math32.Matrix3 |
| 17 | ProjectOntoAxis(localAxis *math32.Vector3) (float32, float32) |
| 18 | } |
| 19 | |
| 20 | // Shape is a collision shape. |
| 21 | // It can be an analytical geometry such as a sphere, plane, etc.. or it can be defined by a polygonal Geometry. |
no outgoing calls
no test coverage detected