Bolt Hit boxes and BoltPhysicsHit.distance is not what's expected

dev001
dev001
edited February 2017 in Photon Bolt
Using BoltNetwork.RaycastAll and passing in a ray, the hit distance does not seem to be correct when a hit is made.

Even if my ray origin and hitbox positions are very far apart I get numbers like 'distance=8.3'.

[Bolt Network HIT] RayOrigin=(20, 0, 20), BoltBox=(200, 100, 200), Distance=8.272503

Even as my ray origin closes into the hitbox the distance value barely moves:

[Bolt Network HIT] RayOrigin=(190, 90, 190), BoltBox=(200, 100, 200), Distance=1.43917

Is this a bug or am I missing something?

Thanks!

Comments

  • dev001
    dev001
    edited February 2017
    I tried squaring the distance but it's still not right, closer of course but I don't think that's a good solution.

    Not sure what's going on.
  • We're aware of some issues with Bolt physics, this instance is probably caused by the scale on what is being hit not being 1.
  • Thanks, that was it. We'll try to work around it for now.