RaptorCalculus / mars-endeavour

The Mars Endeavour
1 stars 1 forks source link

Keep robot from going into the floor when mining #37

Closed ssshake closed 9 years ago

ssshake commented 9 years ago

This simple happens because we tell it to move toward raycast hit of the floor, which then aligns the center of the robot body with the floor.

Another issue is the robot keeps "moving towards" the raycast hit even after it reached it. To test, in mid gameplay click a destination then once there, try to move the robot on the y axis and notice what happens.

a few dirty hacks:

mathf.clamp the y axis move the center of the object stuff like that.

I'd avoid using colliders as that might introduce other crap