I’m attempting to calculate in code positions for hovercraft thrusters.
function Start() {
frontThrusterPos = collider.bounds.center - Vector3(0, collider.bounds.extents.y, collider.bounds.extents.z);
rearThrusterPos = collider.bounds.center + Vector3(0, -collider.bounds.extents.y, collider.bounds.extents.z);
}
This was working fine, up until suddenly Unity began giving bizarre values for the collider’s center when starting the game.
Here are the reported values in the inspector.
Here is the debug print of the collider’s center after starting the game.
Any ideas? Never saw something like this before.