看板 GameDesign 關於我們 聯絡資訊
請問我的raySceneQuery為什麼不會回傳跟平面的交點呢 raySceneQuery->setRay (Ray(tempCamPos,tempMoveVector)); raySceneQuery->execute(); it = qryResult.begin(); if (it != qryResult.end() && it->worldFragment) inPos = it->worldFragment->singleIntersection; 我看到他回傳的vector好像穿過了平面打到平面後面的東西的樣子 麻煩知道的人可以告訴我 不知道可不可以在這裡問 謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.113.87.188
teexit:你用RAY裡面的intersect然後去做,不要用這種方式... 因為 11/24 20:34
teexit:跟你定義的目前位置有關係 你寫的作法,在terrain測試OK 11/24 20:35
anti5566:居然是同學~xd~謝謝你^^ 11/24 20:44