|
HughPH.Box2D
Organised dotnet bindings for Box2D 3.1.1
|
A solid capsule can be viewed as two semicircles connected by a rectangle. More...
Public Member Functions | |
| Capsule (Vec2 center1, Vec2 center2, float radius) | |
| Construct a capsule shape with two centers and a radius. | |
| unsafe MassData | ComputeMass (float density) |
| Compute mass properties of this capsule. | |
| unsafe AABB | ComputeAABB (in Transform transform) |
| Compute the bounding box of this transformed capsule. | |
| unsafe bool | TestPoint (in Vec2 point) |
| Test a point for overlap with this capsule in local space. | |
| unsafe CastOutput | RayCast (in RayCastInput input) |
| Ray cast versus this capsule shape in local space. Initial overlap is treated as a miss. | |
| unsafe CastOutput | ShapeCast (in ShapeCastInput input) |
| Shape cast versus this capsule. Initial overlap is treated as a miss. | |
Public Attributes | |
| Vec2 | Center1 |
| Local center of the first semicircle. | |
| Vec2 | Center2 |
| Local center of the second semicircle. | |
| float | Radius |
| The radius of the semicircles. | |
Properties | |
| float | Length [get] |
| Returns the total length of the capsule, which is the distance between the two centers plus twice the radius. | |
A solid capsule can be viewed as two semicircles connected by a rectangle.