1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-15 16:49:55 +00:00
openmw-tes3mp/apps/openmw/mwphysics
fredzio 32108adc31 Change projectile behaviour to be like in vanilla wrt. water plane:
- enchanted arrow explode upon hit the water plane
- non enchanted arrow disappear (or more accurately, they hit nothingness)
- enchanted arrow shot underwater explode immediately
- non enchanted arrow disappear immediately

Also, solve a bug that occured previously and could theoritically still happens where we use the last tested collision position for instead of the last registered hit:
Use the hit position as saved inside Projectile::hit() instead of the last position saved inside the callback.
If a projectile collides with several objects (bottom of the sea and water surface for instance), the last collision tested won't necessarily be the impact position as we have no control over the order in which the tests are performed.
2021-09-24 20:32:00 +02:00
..
actor.cpp Set mCanWaterWalk and mOnGround when adding Actor to the scene. 2021-07-24 15:04:17 +02:00
actor.hpp Set mCanWaterWalk and mOnGround when adding Actor to the scene. 2021-07-24 15:04:17 +02:00
actorconvexcallback.cpp Remove some useless includes in apps/openmw/mwphysics 2021-05-15 23:13:46 +02:00
actorconvexcallback.hpp Use convexSweepTest for projectile movement to solve any 2021-01-21 20:36:33 +01:00
closestnotmerayresultcallback.cpp Use convexSweepTest for projectile movement to solve any 2021-01-21 20:36:33 +01:00
closestnotmerayresultcallback.hpp Use convexSweepTest for projectile movement to solve any 2021-01-21 20:36:33 +01:00
collisiontype.hpp Use a separate collision type for doors (Fixes #1962) 2015-12-18 18:32:42 +01:00
constants.hpp Fix double -> float conversions 2021-04-19 15:36:58 +04:00
contacttestresultcallback.cpp Do not block a door when it turns away. 2020-11-01 23:01:18 +01:00
contacttestresultcallback.hpp Remove some useless includes in apps/openmw/mwphysics 2021-05-15 23:13:46 +02:00
contacttestwrapper.cpp values for this higher than sGroundOffset cause jittering on some surface; use safe-seeming value slightly less than sGroundOffset 2020-12-27 22:16:11 +00:00
contacttestwrapper.h values for this higher than sGroundOffset cause jittering on some surface; use safe-seeming value slightly less than sGroundOffset 2020-12-27 22:16:11 +00:00
deepestnotmecontacttestresultcallback.cpp Visualize hand to hand hits 2020-10-26 13:48:15 +01:00
deepestnotmecontacttestresultcallback.hpp Visualize hand to hand hits 2020-10-26 13:48:15 +01:00
hasspherecollisioncallback.hpp components/compiler cleanup; also cleaned up related cascading warnings; fixed up final/override issues 2020-10-22 23:57:53 +02:00
heightfield.cpp Store copies of ref_ptr for btCollisionShape wrappers in Navigator 2021-08-04 13:16:31 +02:00
heightfield.hpp Store copies of ref_ptr for btCollisionShape wrappers in Navigator 2021-08-04 13:16:31 +02:00
movementsolver.cpp Tone down actor's skip simulation flag to an optional skip collision 2021-05-01 14:22:30 +02:00
movementsolver.hpp Remove some useless includes in apps/openmw/mwphysics 2021-05-15 23:13:46 +02:00
mtphysics.cpp Merge branch 'lifetime' into 'master' 2021-07-12 14:11:30 +00:00
mtphysics.hpp Do not store callback inside Misc::Barrier 2021-05-05 23:42:47 +02:00
object.cpp Do not store btTransform into Object class: reduce its size by 104 bytes 2021-07-23 19:40:42 +02:00
object.hpp Do not store btTransform into Object class: reduce its size by 104 bytes 2021-07-23 19:40:42 +02:00
physicssystem.cpp Change projectile behaviour to be like in vanilla wrt. water plane: 2021-09-24 20:32:00 +02:00
physicssystem.hpp Change projectile behaviour to be like in vanilla wrt. water plane: 2021-09-24 20:32:00 +02:00
projectile.cpp Change projectile behaviour to be like in vanilla wrt. water plane: 2021-09-24 20:32:00 +02:00
projectile.hpp Change projectile behaviour to be like in vanilla wrt. water plane: 2021-09-24 20:32:00 +02:00
projectileconvexcallback.cpp Change projectile behaviour to be like in vanilla wrt. water plane: 2021-09-24 20:32:00 +02:00
projectileconvexcallback.hpp Remove some useless includes in apps/openmw/mwphysics 2021-05-15 23:13:46 +02:00
ptrholder.hpp Don't cache Ptr, it can be updated while the simulation is running. 2020-12-18 22:22:37 +01:00
raycasting.hpp Use convexSweepTest for projectile movement to solve any 2021-01-21 20:36:33 +01:00
stepper.cpp Remove some useless includes in apps/openmw/mwphysics 2021-05-15 23:13:46 +02:00
stepper.hpp values for this higher than sGroundOffset cause jittering on some surface; use safe-seeming value slightly less than sGroundOffset 2020-12-27 22:16:11 +00:00
trace.cpp Use convexSweepTest for projectile movement to solve any 2021-01-21 20:36:33 +01:00
trace.h Use tracer hit height to skip stepping up in movement solver. 2016-12-24 23:07:44 +01:00