collision detector based on SSV(Sphere Swept Volume)
[詳解]
#include <SSVTreeCollider.h>
|
| | SSVTreeCollider () |
| | constructor [詳解]
|
| |
| | ~SSVTreeCollider () |
| | destructor [詳解]
|
| |
| bool | Distance (BVTCache &cache, float &minD, Point &point0, Point &point1, const Matrix4x4 *world0=null, const Matrix4x4 *world1=null) |
| | compute the minimum distance and the closest points [詳解]
|
| |
| bool | Collide (BVTCache &cache, double tolerance, const Matrix4x4 *world0=null, const Matrix4x4 *world1=null) |
| | detect collision between links. [詳解]
|
| |
collision detector based on SSV(Sphere Swept Volume)
| SSVTreeCollider::SSVTreeCollider |
( |
| ) |
|
| SSVTreeCollider::~SSVTreeCollider |
( |
| ) |
|
|
inline |
| bool SSVTreeCollider::Collide |
( |
BVTCache & |
cache, |
|
|
double |
tolerance, |
|
|
const Matrix4x4 * |
world0 = null, |
|
|
const Matrix4x4 * |
world1 = null |
|
) |
| |
detect collision between links.
- 引数
-
| cache | |
| tolerance | If distance between links is smaller than this value, it is regarded as collision |
| world0 | transformation of the first link |
| world1 | transformation of the second link |
- 戻り値
- true if collision is detected, false otherwise
| bool SSVTreeCollider::Distance |
( |
BVTCache & |
cache, |
|
|
float & |
minD, |
|
|
Point & |
point0, |
|
|
Point & |
point1, |
|
|
const Matrix4x4 * |
world0 = null, |
|
|
const Matrix4x4 * |
world1 = null |
|
) |
| |
compute the minimum distance and the closest points
- 引数
-
| cache | |
| minD | the minimum distance |
| point0 | the closest point on the first link |
| point1 | the closest point on the second link |
| world0 | transformation of the first link |
| world1 | transformation of the second link |
- 戻り値
- true if computed successfully, false otherwise
このクラス詳解は次のファイルから抽出されました: