[0.10.27] Bow sometimes hit an "Invisible Wall" in Dungeon

Curated user bug reports with enough information to reproduce problem. Moderators will move topics here from Help & Support once a bug has been confirmed and enough information has been provided.
Post Reply
User avatar
Posts: 2655
Joined: Wed Jul 18, 2018 6:14 pm
Location: France

[0.10.27] Bow sometimes hit an "Invisible Wall" in Dungeon

Post by pango »

In my experience they're two main cases when arrows can be "lost":
  • when you or your target are close to a static obstacle, say a wall or a door frame, then it can hit the wall instead of your opponent, and since there no visual or audible clue that this is happening, you don't always know why you missed your target. Maybe some audio clue would help here;
  • the arrow disappears in mid air, and again from my experience it happens near slopes; Either in slanted corridors, or slanted floors.
Investigating that issue a bit, I came across AABB (axis aligned bounding box) algorithm description and how it can trigger ghost collisions. I made the observation that slanted walls were usually involved beforehand, but it really fits.
I tested this by disabling mesh collider and reenabling sphere collider on arrow prefab and drastically lowering the sphere collider radius override in the code (ColliderRadius = 0.02f... by the way isn't it unusual to override the radius by code instead of using prefab value?), and I no longer see arrows disappearing in mid air (it's still difficult to shoot thru doors though, even if it feels a bit easier).
I suspect totally switching to so raycast solution would be at least as good and have better performance, but I'm not sure how to do that, does it require to replace the whole the rigidbody colliding mechanism...

Talking of "missiles", there's another weirdness, noticed among others by streamers like FearfulPinata, that exploding spell have a collider. That's most noticeable when you rush toward a caster that just sent a spell at you, for a brief moment "something" gets in your way. I didn't report it immediately because it could kind of make sense, but I agree that it feels a bit strange when it happens.

Game save: can't shoot the lamia from that location
Screenshot.jpg (110.63 KiB) Viewed 98 times
(267.2 KiB) Downloaded 2 times
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart

User avatar
Posts: 5900
Joined: Sun Mar 22, 2015 1:51 am

Re: [0.10.27] Bow sometimes hit an "Invisible Wall" in Dungeon

Post by Interkarma »

Relevant bug report info moved here from below topic.


Post Reply