1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 09:49:55 +00:00

Proper orientation of arrows

This commit is contained in:
Mads Buvik Sandvei 2020-06-16 17:54:02 +02:00
parent 22a7882acb
commit 09cd233958

View file

@ -170,6 +170,9 @@ void WeaponAnimation::releaseArrow(MWWorld::Ptr actor, float attackStrength)
MWWorld::Ptr weaponPtr = *weapon;
MWWorld::Ptr ammoPtr = *ammo;
#ifdef USE_OPENXR
orient = osg::computeLocalToWorld(nodepaths[0]).getRotate();
#endif
MWBase::Environment::get().getWorld()->launchProjectile(actor, ammoPtr, launchPos, orient, weaponPtr, speed, attackStrength);
inv.remove(ammoPtr, 1, actor);