- Home /
Question by
Koteu · Oct 25, 2018 at 07:43 PM ·
physicsscripting beginnergeometry
How to make an object always stick to a mesh?
Hello, i am developing a racing game. But it's not your usual racing game, the bike is supposted to always have the Y coordinate of the same value as the closest point on the map mesh, in other words it is ALWAYS touching it.
What i do not want is the Y coordinate to be dependent upon the X and Y position, as there will be 2 (or maybe more floors).
I have absolutely no idea how to implement this. Completly zero. I am rather new to scripting, and this i way out of my league, i don't even know how to start... The map is not a simple plane, so simple maths won't help. I'll apreaciate any help at all, not necessarily a solution.
Thanks in advance
Comment
screenshot of what we're dealing with here would be nice