mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-12 19:31:41 +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
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue