home.social

#bulletphysics — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #bulletphysics, aggregated by home.social.

  1. Show HN: Marble3 – a 3D game engine for the web marble3.dev · 2 points · 0 comments · HN thread

    TL;DR Marble3 is a lightweight open-source 3D game engine for small browser games, written in TypeScript on Three.js with Bullet physics compiled to WebAssembly. It is distributed as a single npm package and ships with an FPS player with desktop and touch controls, voxel terrain, and a DOM-based HUD. The story was posted as a Show HN with 2 points and no comments yet.

    • Built on TypeScript and Three.js, with Bullet physics running as WebAssembly via the companion project Bullet TS
    • Includes an FPS player with pointer-lock WASD on desktop and a stick, swipe-look and jump button on phones
    • Voxel terrain uses simplex-noise heightmaps with greedy block merging, and physics streams in around moving entities
    • HUD elements are plain DOM, styled inline and disposed with the game; no CSS files or assets to copy
    • About 4k lines of TypeScript; install with npm install marble3, and disposeGame(el) tears down the game including physics
    • Licensing: Marble3 and Bullet TS are MIT, Bullet itself is zlib

    Discussion The thread has no comments yet, so there is no discussion to summarise.

    #gameEngine #threeJs #webAssembly #bulletPhysics #typescript #showHN

Share on Mastodon

Enter the server where you have an account.