Spherical navigation
Sorry for the delay in posts and in the dynamics of Devember. I had some professional and personal issues to take care of.
A whole world to toy with.
– Syndra, League of Legends
The MMOTPS Cosmic Break simulates planet curvature with a shader.
This allows long range artillery units to use the horizon as concealment. I will go one step beyond and make the action take place on a fully spherical planet.
So I started Godot and created an empty project, with GLES2 renderer so it can run on almost any device.
Under the scene’s top Spatial node, I create a hierarchy of nodes of the following classes:
Spatial
(top scene node)StaticBody
(with scale10, 10, 10
)CollisionShape
(itsShape
is aSphereShape
)MeshInstance
(itsMesh
is a newSphereMesh
)
Camera
So I will add the player, a RigidBody
in character mode.
Under it I will create a capsule CollisionShape
of 1 unit long and 0.5 units radius.
Also, a MeshInstance
capsule mesh with the same dimensions as the collision shape.
Finally I’ll attach the camera to the RigidBody
and point it to the player capsule.
Describing in text everything its more cumbersome to me than doing it. Maybe I should just vlog it all to some video platform and then just link the video.