Thrown weapon projectile doesn't rotate
I'm not a weapon expert, but it seems to me that vanilla behavior doesn't make much sense in terms of physics - a weapon should either spin much faster or not spin at all, and that depends on the weapon type - knifes spin, but spears don't.
I agree that throwing knifes and stars should rotate. How about darts though? I remember there is a mod in Nexus that makes throwing weapons rotate and align correctly. But I dont use it.
I think it should rotate faster too, but then darts for example may look weird. We could also just rotate it 180° so that it flies blade-first, which is maybe not exactly how knives work, but would look good for all projectiles.
Also the projectile orientation is obtained with a quaternion that rotates one angle to another, which however results in wrong roll. Only yaw and pitch should be used to orient the projectile (could maybe be done with lookAt matrix).
I just tried and the lookAt matrix works great, just has to be inverted as it's primarily made for cameras. I'm now seeing a problem with the center of rotation, e.g. the throwing knife rotates around it's tip, but it's not very noticeable if it rotates slowly like in vanilla.
- Assignee set to Miloslav Číž
- Status changed from New to In Progress
- Target version set to openmw-0.44
- Status changed from In Progress to Closed
- % Done changed from 0 to 100
- Operating system changed from Linux to Other
Also available in: Atom