Hi I’m currently in the process of making my final year project. One of the requirements for the game we wish to make involves platforms which the player can walk on but that are in every angle (Upside down, Sideways and normal.) I remember playing the game Prey and the game had these Sticky platforms which are exactly what we want can anybody help?
There’s an example of this sort of thing in the Locomotion package (player walking around a sphere) and as a bonus it works with the foot-placement raycasting of Locomotion.
You probably want to think of ways to enforce this with centric gravity instead of approaching it from the “sticky platform” sort of idea. You want the controller to rotate to match the surface normals of the platform he’s on, disable the regular gravity, and then apply a force in the player’s local “down” direction.
Thanks for the Comment but are you referring too the part in the video when the player is on the small planet in the box (1:50-2:30) because the planet thing is not what we want what we want is the lit up platforms at the start of the video.
I’m talking about what you asked for, which is giving players the ability to walk on both the top and bottom of platforms, around spheres, or up walls. There is an example of how to achieve this in the Locomotion package, and it’s not really as difficult as it might seem. Align the character to the surface they’re standing on, and switch gravity to point in this direction instead of in the negative Y axis. Dealing with the camera, players jumping, and traveling from one surface to another is something else entirely. Bonus points if you get it working with NPCs.
I didn’t even watch the video, but I was reminded of how obscenely long Prey was in development and how little it had in common with the original Quake-era preview videos they released of the portal technology years and years ago.