mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-30 15:15:31 +00:00
collision shape scale fix
This commit is contained in:
parent
3c5f8a4a23
commit
ba0365a427
2 changed files with 2 additions and 2 deletions
|
@ -120,7 +120,7 @@ namespace MWWorld
|
||||||
void PhysicsSystem::addObject (const std::string& handle, const std::string& mesh,
|
void PhysicsSystem::addObject (const std::string& handle, const std::string& mesh,
|
||||||
const Ogre::Quaternion& rotation, float scale, const Ogre::Vector3& position)
|
const Ogre::Quaternion& rotation, float scale, const Ogre::Vector3& position)
|
||||||
{
|
{
|
||||||
OEngine::Physic::RigidBody* body = mEngine->createRigidBody(mesh,handle);
|
OEngine::Physic::RigidBody* body = mEngine->createRigidBody(mesh,handle,scale);
|
||||||
mEngine->addRigidBody(body);
|
mEngine->addRigidBody(body);
|
||||||
btTransform tr;
|
btTransform tr;
|
||||||
tr.setOrigin(btVector3(position.x,position.y,position.z));
|
tr.setOrigin(btVector3(position.x,position.y,position.z));
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 21b8456453242e132c85f92047cf9bce535c1b22
|
Subproject commit 5aabf22c16dab6a2230845f90fe5fdf67eeeca32
|
Loading…
Reference in a new issue