Skip to content

Geodesics Samples

TIP

These samples do not use any physics to keep the players on the surfaces, but instead use math only.

Included are some examples of utilizing Geodesics for moving players. The samples appear together, and include an animated character and a simple vehicle.

TIP

These samples use the old input system WASD by default, but could easily be changed to meet any other input requirements

Sphere Movement

sphere-movement.gif

The provided example here will keep the characters up direction always pointing away from the center of the sphere.

  • Ensure that you set the SphereTransform, Radius & PlayerTransform fields
    • Alternatively, these can be replaced with script focused versions to allow more flexibility

sphere-move-controller.png

Torus Movement

NOTE

Find more information regarding the Torus here.

torus-movement.gif

The provided example will always have the characters up direction point away from the center co-planar axis (The middle of the torus/donut).

  • The character will always move along the surface at the speed specified
  • The values for the Torus can be adjusted real-time
  • A TorusMeshGenerator component is provided!

torus-move-controller.png