#Crash at high position transform

1 messages · Page 1 of 1 (latest)

digital patio
#

Hey so I have noticed the game crashes when at high position transform values. The value I discovered it at was an x value of about 50000. Though I tested other high values to verify that it was issue. There is no debugger error whatsoever, the game runs perfectly then just abruptly crashes. It took me like an hour of testing before I could figured out the transform was the issue.
Then after several hours of further testing, I have verified that while it seems to take longer for the issue to happen, the crash still occurs when it is just the player at a high x value firing projectiles with no enemies or terrain. Though the crash does not seem to occur when the player does not fire projectiles. Which leads me to believe the issue is either with how I did the raycast bullets, or with instantiating in general (which seems likely since it also crashed with enemy projectiles that did not use raycast).
I already reworked my levels around the issue, but I would still like to find a fix for future reference. If anyone could assist I would greatly appreciate it.

digital patio
#

This was solved on another server, apparently it was due to floating point imprecision causing a while loop to break.