mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-06-25 21:11:39 +00:00
Use actor's physics position as a ray origin in tracer
This commit is contained in:
parent
3636cf2015
commit
f8655d2425
1 changed files with 1 additions and 1 deletions
|
@ -249,7 +249,7 @@ namespace MWPhysics
|
||||||
// Check if we actually found a valid spawn point (use an infinitely thin ray this time).
|
// Check if we actually found a valid spawn point (use an infinitely thin ray this time).
|
||||||
// Required for some broken door destinations in Morrowind.esm, where the spawn point
|
// Required for some broken door destinations in Morrowind.esm, where the spawn point
|
||||||
// intersects with other geometry if the actor's base is taken into account
|
// intersects with other geometry if the actor's base is taken into account
|
||||||
btVector3 from = toBullet(position);
|
btVector3 from = toBullet(position + offset);
|
||||||
btVector3 to = from - btVector3(0,0,maxHeight);
|
btVector3 to = from - btVector3(0,0,maxHeight);
|
||||||
|
|
||||||
btCollisionWorld::ClosestRayResultCallback resultCallback1(from, to);
|
btCollisionWorld::ClosestRayResultCallback resultCallback1(from, to);
|
||||||
|
|
Loading…
Reference in a new issue