Skip to content

Conversation

@mrdoob
Copy link
Owner

@mrdoob mrdoob commented Apr 20, 2023

Description

I've noticed the community is moving to Rapier so I wanted to have an example so we could compare.

It's nice that Rapier is actively maintained and the RapierPhysics.js is way less verbose.

@mrdoob mrdoob added this to the r152 milestone Apr 20, 2023
@mrdoob mrdoob merged commit 1a4ed58 into dev Apr 20, 2023
@mrdoob mrdoob deleted the rapier branch April 20, 2023 14:34

}

function compose( position, quaternion, array, index ) {
Copy link
Contributor

@LeviPesin LeviPesin Apr 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't we use new Matrix4().compose( position, quaternion, new Vector3() ).toArray( array, index ) instead of this function?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh yeah, when I did the original physics wrapper there was no import maps. Should be much cleaner now.

@mrdoob
Copy link
Owner Author

mrdoob commented Apr 21, 2023

@mrdoob
Copy link
Owner Author

mrdoob commented Apr 21, 2023

On Pixel 7...

  • Ammo struggles to start and goes from 70fps down to 35fps.
  • Rapier runs 90fps solid.

emmanueljl pushed a commit to emmanueljl/three.js that referenced this pull request Apr 28, 2023
* Added Rapier example.

* Updated screenshot.

* Fixed DeepScan issue.

* RapeirPhysics: Added world.timestep.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants