hAPI Fisica
0.1
The hAPI Fisica physics engine expands Richard Marxer's fisica for Processing. The engine wraps the jbox2d physics engine for use with the Haply Development kit and the Hapkit.
|
Public Member Functions | |
float | getLambda () |
float | getNormalX () |
float | getNormalY () |
float | getX () |
float | getY () |
Protected Member Functions | |
FRaycastResult | set (float x1, float y1, float x2, float y2, RaycastResult raycastResult) |
Protected Attributes | |
float | m_lambda = 0.0f |
Vec2 | m_normal = new Vec2() |
float | m_x1 |
Represents the result of a casted ray.
Contacts
float FRaycastResult.getLambda | ( | ) |
Returns the lambda of the raycast result.
float FRaycastResult.getNormalX | ( | ) |
Returns the horizontal component of the ray cast contact normal.
float FRaycastResult.getNormalY | ( | ) |
Returns the vertical component of the ray cast contact normal.
float FRaycastResult.getX | ( | ) |
Returns the horizontal component of the ray cast contact normal.
float FRaycastResult.getY | ( | ) |
Returns the vertical component of the contact ray cast normal.