Skip to content

feat(rapier): full collider shapes support#1403

Open
Neosoulink wants to merge 1 commit intomainfrom
feat/rapier-full-colliders-support
Open

feat(rapier): full collider shapes support#1403
Neosoulink wants to merge 1 commit intomainfrom
feat/rapier-full-colliders-support

Conversation

@Neosoulink
Copy link
Copy Markdown
Member

Summary

  • RigidBody component now uses RigidBodyCollidersShape via the collider prop to generate auto colliders
    • Supported shapes: cuboid, ball, capsule, cone, cylinder, convexHull, trimesh.
  • Full Collider Shapes support
    • Supported ColliderShape: ball, capsule, cone, convexHull, convexMesh, cuboid, cylinder, heightfield, polyline, roundCone, roundConvexHull, roundConvexMesh, roundCuboid, roundCylinder, trimesh.
  • Align Collider components with ColliderShape.
  • Code clean-up and accessibility improvements.

Breaking changes

This integration was designed to be backwards compatible, but some changes were necessary to align with the new ColliderShape.

  • Old hull collider no longer supported, use convexHull instead.

### Description

- `RigidBody` component now uses `RigidBodyCollidersShape` via the `collider` prop to generate auto colliders
  - Supported shapes: `cuboid`, `ball`, `capsule`, `cone`, `cylinder`, `convexHull`, `trimesh`
- Full Collider Shapes support
  - Supported `ColliderShape`: `ball`, `capsule`, `cone`, `convexHull`, `convexMesh`, `cuboid`, `cylinder`, `heightfield`, `polyline`, `roundCone`, `roundConvexHull`, `roundConvexMesh`, `roundCuboid`, `roundCylinder`, `trimesh`
- Align `Collider` components with `ColliderShape`
- Code clean up and accessibility improvements.

#### Breaking changes

This integration was designed to be backwards compatible, but some changes were necessary to align with the new `ColliderShape`.

- Old `Hull` collider no longer supported, use `convexHull` instead.
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 18, 2026

Deploy Preview for tresjs-lab ready!

Name Link
🔨 Latest commit 4c81055
🔍 Latest deploy log https://app.netlify.com/projects/tresjs-lab/deploys/69e4114395fe6700089254b5
😎 Deploy Preview https://deploy-preview-1403--tresjs-lab.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 18, 2026

Deploy Preview for tresjs-docs ready!

Name Link
🔨 Latest commit 4c81055
🔍 Latest deploy log https://app.netlify.com/projects/tresjs-docs/deploys/69e411439ce91c0008b2a03c
😎 Deploy Preview https://deploy-preview-1403--tresjs-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 18, 2026

Deploy Preview for cientos-tresjs ready!

Name Link
🔨 Latest commit 4c81055
🔍 Latest deploy log https://app.netlify.com/projects/cientos-tresjs/deploys/69e411433460fd0008e95bad
😎 Deploy Preview https://deploy-preview-1403--cientos-tresjs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant