Experimental rapier physics engine, versions 2.x.x


Experimental rapier physics engine. Versions 2.x.x

Do not use this version for your projects. It should only be used for testing.

This is an experimental version of the addon which uses the rapier physics instead of the cannon-es physics engine. Only a small subset of the features of the full addon are enabled, but I would be interested in any performance or stability feedback. 

The only features available:

  • 3DShape with box collider
  • Raycast
  • Apply impulse

With some very early tests, I have seen a nice performance boost (3X+ better performance with 1000 cubes.) Depending on feedback, I will continue porting over more features and then start to take a look a some of the newer rapier features.

Files

mikal_cannon_3d_physics-2.0.0.c3addon 87 kB
Nov 28, 2023

Get Construct 3 3D Physics

Buy Now$10.00 USD or more

Comments

Log in with itch.io to leave a comment.

The fact shapecasting is a feature for this new engine convinces me it's better. but I will for sure test this.

i try, after preview 3DObjectPhysics.c3p  i have black screen only

Ah, yes sorry need rotate3d on them, I didn't add the case for no rotate3d, will add that now.

Also warning - this is not yet tested on 3DObject, only 3D Shape boxes. I fixed the issue with requiring 3D Rotate on 3D Shape boxes.

found this site that may be useful for the sprites, https://www.spriters-resource.com/pc_computer/fallout2/sheet/54175/

I had errors but I just didn't have rotate3d on them also. Oops

Cool! I will try on the weekend. Is there impulse at angle or position yet?

Not yet, put there is a formula for angles to vector which could be used in the current ACE:

x = ๐‘Ÿcos๐›ผ

y = โˆ’๐‘Ÿsin๐›ผsin๐›ฝ

z = ๐‘Ÿsin๐›ผcos๐›ฝ

  • where r = length of vector (e.g. 1)
  • ๐›ผ is the angle on the XZ plane rising from the X axis
  • ๐›ฝ is the angle on the YZ plane rising from the Y axis.