I am trying to make this cube move along this plattform (along the red arrow, which is just there for showing the movement, its not a steering path ), but it doesnt work somehow. And yh… the code i wrote there seems useless, so dont mind it.
I want that this object always moves on y axis, and everytime it touchs the wall, it will climb on that, or even climbing down if it stands higher/ climbing up and down a ramp. Ground and Wall should have the same property (Ground). Its best if the object takes the object it stands on as “ground”, i guess it has things to do with force field constraint?
It will be a bunch of obstacles placed in the game and that cube should beable to climb on all of them.
Thanks for your help
You can set gravity to zero and use ray in -Z axis to test bottom of your car and if obstacle there than stop falling, elseway apply 9.8 force in -Z. You can even make the ray to be ~1.5 units and apply something like 5.0 force in +Z for exact frames(use timer) when it just activates so that he lands smoothly…
thanks blueprintrandom, it looks impressive. however i will see if i can reduce some of the logic bricks into python. hm. i dont know how to use realtime constraint like you did there. Hm if the object is spawned by an empty, will it still be constrainted? And, which of the object there is the main one? Since i see there is a chain between them, but none of them is the parent of one other.