Log inGet started
Package

geo.module

Newest version

README.md

game.shared.geo

Procedural geometry kit for Banana 2077. The world has no imported models, so every curved thing in the game (the banana hero and his baton, the fruit and vegetable gang, the gold peel megatowers) is built from these generators.

  • G.lathe, G.tube, G.blob, G.grid build MeshGeometry tables (flat arrays, 0-based CCW indices, normals, uvs). opts.open on G.grid builds an open sheet instead of a closed ring.
  • G.xform, G.merge move and combine them; G.mesh uploads a runtime mesh, G.asset writes a durable .mesh asset.
  • G.q* quaternion helpers ({x,y,z,w}): qMul, qInv, qRot, qAxis, qFromTo, qBasis, qLook, qSlerp.

Called by game.player.parts, the enemy builders and the city district.