mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
looks like distance needs to default to 0, not max, for raycast purposes.
(cherry picked from commit 00ee743559e19bc2dd3cbf92060b8bf089d5aceb)
This commit is contained in:
parent
bd8a72005e
commit
522578074c
|
|
@ -67,8 +67,8 @@ struct Collision
|
|||
generateTexCoord(false),
|
||||
texCoord(-1.0f, -1.0f),
|
||||
face(0),
|
||||
faceDot(-1.0f),
|
||||
distance(FLT_MAX)
|
||||
faceDot(0.0f),
|
||||
distance(0)
|
||||
|
||||
{
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue