Closed GoogleCodeExporter closed 8 years ago
So I looked at a decompilation of the HitPointWorld property (I've no idea how
to go about doing it the right way).
Something about it appeared off. HitPointWorld returns a lazily-allocated
array, but returns _hitNormalWorld if the array has already been allocated. So
HitPointWorld was returning the correct array, but only the first time it was
accessed. Subsequent accesses were returning an array that's part of
HitNormalWorld and hadn't been allocated yet.
Case in point: HitPointWorld only returns the correct value the first time it's
accessed. Further accesses to it return _hitNormalWorld instead, whether it has
been allocated or not.
Knowing this, I cached the first value returned HitPointWorld and now raycasts
work as intended. And there's a sizable comment there explaining why. Beware.
Original comment by shiny....@gmail.com
on 9 Jun 2013 at 8:16
Ah, this was fixed in r499.
Looks like it's time for another release :)
Original comment by andres.traks
on 9 Jun 2013 at 10:02
Nifty!
I built the latest revision from source and things are working fine.
Original comment by shiny....@gmail.com
on 10 Jun 2013 at 3:20
Original comment by andres.traks
on 10 Jun 2013 at 6:14
Original issue reported on code.google.com by
shiny....@gmail.com
on 9 Jun 2013 at 7:34Attachments: