forked from mirror/openmw-tes3mp
fix pmove BB shape origin
This commit is contained in:
parent
a453a7f035
commit
40c7a850bf
1 changed files with 2 additions and 2 deletions
|
@ -97,8 +97,8 @@ const bool NewPhysicsTrace(NewPhysTraceResults* const out, const Ogre::Vector3&
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const btVector3 btstart(start.x, start.y, start.z);
|
const btVector3 btstart(start.x, start.y, start.z + BBHalfExtents.z);
|
||||||
const btVector3 btend(end.x, end.y, end.z);
|
const btVector3 btend(end.x, end.y, end.z + BBHalfExtents.z);
|
||||||
const btQuaternion btrot(rotation.y, rotation.x, rotation.z); //y, x, z
|
const btQuaternion btrot(rotation.y, rotation.x, rotation.z); //y, x, z
|
||||||
|
|
||||||
const btBoxShape newshape(btVector3(BBHalfExtents.x, BBHalfExtents.y, BBHalfExtents.z));
|
const btBoxShape newshape(btVector3(BBHalfExtents.x, BBHalfExtents.y, BBHalfExtents.z));
|
||||||
|
|
Loading…
Reference in a new issue