OROCHI
 
Loading...
Searching...
No Matches
GxBackgroundHit::GxRayCallback Struct Reference

#include <GxBackgroundHit.h>

Inheritance diagram for GxBackgroundHit::GxRayCallback:
Collaboration diagram for GxBackgroundHit::GxRayCallback:

Public Member Functions

初期化
 GxRayCallback (const btVector3 &rayFromWorld, const btVector3 &rayToWorld, GxConditionInformation *pConditionInfo)
 コンストラクタ
 
操作
bool needsCollision (btBroadphaseProxy *pProxy) const override
 
- Public Member Functions inherited from GxCollision::GxRayCallback
 GxRayCallback (const btVector3 &rayFromWorld, const btVector3 &rayToWorld, GxConditionInformation *pConditionInfo)
 コンストラクタ
 
bool needsCollision (btBroadphaseProxy *pProxy) const override
 
btScalar addSingleResult (btCollisionWorld::LocalRayResult &rayResult, bool normalInWorldSpace) override
 

Additional Inherited Members

- Public Attributes inherited from GxCollision::GxRayCallback
GxConditionInformation_pConditionInfo
 レイチェック判定条件構造体
 
u32 _triangleIndex
 メッシュ形状とヒットしたときのヒットした三角形index
 

Detailed Description

レイチェック用コールバック構造体:最も近い結果を返す

Note
レイチェックの以下の処理を定義するためのコールバックです。 ・早期終了チェック ・ヒット時の処理

Member Function Documentation

◆ needsCollision()

bool GxBackgroundHit::GxRayCallback::needsCollision ( btBroadphaseProxy * pProxy0) const
override

早期終了チェック処理 Bullet内部から詳細判定に入る前に呼ばれます。 ここでGxConditionInformationを利用した早期終了チェックを行います。 グループとマスクによる判定もこの関数内で行われます。 この時点ではチェック中のメッシュのindexは取得できません。

Parameters
pProxy0[in] プロキシ
Returns
詳細判定が必要ならtrue
Here is the call graph for this function:

The documentation for this struct was generated from the following files: