BoltEngine / Bolt-Tracker

New issue tracker for Photon Bolt
10 stars 2 forks source link

Bolt.RaycastAll hit.distance is incorrect when Transform of object scaled #25

Closed charlesmccann closed 5 years ago

charlesmccann commented 7 years ago

How to reproduce issue

Details and code to be used in Bolt sample code (0.4.3.19).
Add Cube with Unity Collider, Bolt HitboxBody and Bolt Hitbox. Scale Transform size up. https://tagmycode.com/snippet/6149/unity-photon-bolt-raycast-distances#.WGp4CvkrKUk

Expected Behavior

Bolt hit.distance should be about the same distance as the unity collider hit.distance

Actual behavior

Hit.Distance calculations are off by a factor of the Transform scaling.

Configuration

Unity Version: 5.5.0f3 Bolt Version: 0.4.3.19 Operating System: Windows 10 Network Configuration:

DirtyHippy00 commented 7 years ago

To clarify, this is because scaling the transform of anything containing a bolt hitbox borks everything up. However, it does seem like the gizmo for the hitbox is scaling (which it shouldn't if the scale of the transform doesn't affect it). In any case, would be great if it could be fixed.

ramonmelo commented 5 years ago

Fixed on the next release.