itch.io is community of indie game creators and players

Devlogs

[Rapier] Rapier & Worker Physics engine - BETA

Construct 3 3D Physics
A browser asset pack made in HTML5

This is a beta test of using the Rapier library and running in a worker, both to reduce CPU usage. Features may be buggy or broken, do not use for production code.

This version only works in PREVIEW for now (if you really want to releases something you can hack the export files to fix an include path.) Now works in export also, but requires a remote fetch of the physics library for now (so requires internet connection).

Some added features

- Kinematic Character Controller

- Update Body removes current body from 3DShape and adds a new one, taking in to account any changes of the 3DShape. Use this when you set an object manually (e.g. change size, change rotation, change location), use sparingly. Not meant to be used every tick, since it deletes and creates a new body.

- SetMass and Mass property

- SetWorldScale (render to physics world scale, typically 100)

- Physics render (this is slow but helpful for debug, shows physics view of bodies), need the render addon and Enabling through an ACE.

- Set collision groups (membership and filter), see: https://rapier.rs/docs/user_guides/javascript/colliders

ISome features are not functional yet:

  • 3DObject not yet supported (you can link it to a 3DShape)
  • Only box and wedge supported for 3DShape
  • Collision trigger
  • Filter groups for raycast

Files

  • mikal_physics_render-1.0.0.c3addon 7 kB
    Mar 08, 2024
  • RapierSimple.c3p 210 kB
    Mar 08, 2024
  • mikal_cannon_3d_physics-2.2.1.c3addon 763 kB
    Mar 08, 2024
Download Construct 3 3D Physics
Leave a comment