mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 12:49:56 +00:00
Proper orientation of arrows
This commit is contained in:
parent
22a7882acb
commit
09cd233958
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue