In my game I’m making a space ship like vehicle that is inside of a large room like level. In the level there are four main platforms, and to get to the higher ones you must go up a ramp. My problem is I can’t go up the ramp, I just go through it. The level was built in Maya, and I have now changed the ramp part of the level into a rigidbody, and also made it a prefab, just in case. So how would I get my ship to go up the ramp and then straighten back out at the top of it? It’s a short ramp.
You first need to give the ramp and the ship a collider each. Additionally you cannot move the spaceship by manipulating transform.position directly, since it would ignore any colliders.