Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Spr::CDContactAnalysis Class Reference

#include <CDDetectorImp.h>

Inherited by Spr::PHConvexPair.

Collaboration diagram for Spr::CDContactAnalysis:

Collaboration graph
[legend]
List of all members.

登録,追加系のメソッド

Public Member Functions


Detailed Description

衝突判定結果(交叉部分の形状を求める機能/法線を求める機能付き)

Definition at line 31 of file CDDetectorImp.h.


Member Typedef Documentation

typedef std::vector<CDFace*> Spr::CDContactAnalysis::Vtxs
 

面を双対変換した頂点でQuickHullをするので,CDFaceがVtxs.

Definition at line 36 of file CDDetectorImp.h.


Member Function Documentation

CDFace** Spr::CDContactAnalysis::FindIntersection CDConvexPair cp,
Affinef *  af
 

共通部分の形状を求める. 結果は,共通部分を構成する面を vtxs.begin() から返り値までに, 共通部分を構成する頂点を, planes.begin から planes.end のうちの deleted==false のものに入れて返す. convex[0], convex[1]の頂点をWorld系に変換する変換行列を af0, af1 に渡さなければならない.

void Spr::CDContactAnalysis::IntegrateNormal CDConvexPairWithNormal cp,
Affinef *  af
 

交差部分の形状の法線を積分して,衝突の法線を求める. 物体AとBの衝突の法線は,交差部分の面のうち,Aの面の法線の積分 からBの面の法線の積分を引いたものになる.

void Spr::CDContactAnalysis::CalcNormal CDConvexPairWithNormal cp,
Affinef *  af
 

法線の計算.前回の法線の向きに物体を動かし, 物体を離して最近傍点を求める.

void Spr::CDContactAnalysis::Draw CDConvexPair cp,
Affinef  afw,
SGScene s
 

共通点と交差部分の形状の描画


Member Data Documentation

Vtxs Spr::CDContactAnalysis::vtxs [static]
 

QuickHullの頂点.

Definition at line 37 of file CDDetectorImp.h.

CDQHPlanes<CDFace> Spr::CDContactAnalysis::planes [static]
 

Definition at line 38 of file CDDetectorImp.h.

bool Spr::CDContactAnalysis::isValid
 

交差部分のポリゴンは有効?

Definition at line 39 of file CDDetectorImp.h.


The documentation for this class was generated from the following file:
Generated on Sun Apr 16 02:08:25 2006 for Springhead by  doxygen 1.4.1