- Home /
Question by
dcsnga85 · May 05, 2015 at 02:37 AM ·
collisiontriggerontriggerenter
Slow collision triggers late
I am trying to get an asteroid to collide with my ship. The code works in that when the trigger occurs, the playerhealth code enacts as it should. The problem is the trigger doesn't occur until the astroid is well into the ship. The ship is stationary and the asteroid has a speed of 3 so it isnt an issue with the asteroid moving too fast. How do I fix this? Upon testing further it seems it does not interact with the ship at all but at a (0, 0, 0) point. If I move the ship there is nothing at (0, 0, 0) so I dont know what it's triggering on.
in the next frame the trigger code is carried out
Comment