Walk and stick on animated objects and planets

New and last version v3

  • walk on animated object
  • walk on beveled cubes
  • walk on spheres
  • jump at all sides

Well a video explains more

Ideal for elevators/platforms/animated objects/ etc. etc.

If you want to walk around, here is the .blend
walk around and stick to animated objects.blend (583.8 KB)

4 Likes

nice ill try it

  • Added a new version, where you can walk on planets as well, should solve all the sticking questions.
1 Like
  • Added new and last version v3

i was not statisfied with the script, and it could be better, lighter, etc. So i rewrote a bit and made it adjustable for different situations, The script has more comments then code, so it should help you figuring out how it works. (it’s easy, i’m not an hard coder)

Have fun with it.

2 Likes

This little script is pure gold… I might have questions for you when I bump into a problem, if you don’t mind.

Nice work. I had a look at some of your other scripts too / downloaded a few. :wink:

1 Like

I can already tell you it works OK on scaled-up models, only problem is that since the player is moving perpendicular to face normals, when walking on big balls the camera moves abruptly when walking on edges/ changing angle. Also the player will climb hills at an angle relative to the horizon…

Great for space game though, where the player can walk in non-gravity environments inside a space ship, for example. I’m working on a small demo, where I will switch between this script and another control scheme for the player, depending on the context.

Both has nothing to do with this script, it has to do with your movent- and camera script. All this script does is create gravity for the player(box) and align it to the floor it’s walking on, and when walking/jumping off from something on/at an angle that it alligns the z axis back up.

I did not add any script to your .blend file. I just opened it, added a big UV sphere, put the green “player” object on it and tested it “as is”.

Oh ok, didn’t even now i had a camera attached to it, i created the setup just in a 3d matter like the view of the movie is. In this case i recommend to make your own setup to see if that works for you, due to i guess i made this in bge and if opened in upbge there can be some conflicts causing this.

It’s not a big deal, and your script does exactly what you designed it to do. This is more of a “geometry” problem when dealing with large surfaces.