Timeline for How could I constrain player movement to the surface of a 3D object using Unity?
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 23, 2014 at 13:44 | comment | added | Daniel Kvist | You could create a cube which is restricted to only move around the X-axis for example, inside of the non-spherical object, and move it when the player moves, so that it is always straight under the player, and then pull the player down to the cube. Try it. | |
Dec 23, 2014 at 13:34 | comment | added | Anko | Gravitating the player to the center of a planet (and rotating them accordingly) works well for near-spherical planets, but I can imagine it going really wrong for less spherical objects, like that rocket-shape Mario is jumping on in the first GIF. | |
Dec 22, 2014 at 18:01 | history | edited | Daniel Kvist | CC BY-SA 3.0 |
added 284 characters in body
|
Dec 22, 2014 at 17:55 | history | answered | Daniel Kvist | CC BY-SA 3.0 |