Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding physics from GLTF directly #156

Open
4 tasks done
JaimeTorrealba opened this issue Jan 11, 2025 · 1 comment
Open
4 tasks done

Adding physics from GLTF directly #156

JaimeTorrealba opened this issue Jan 11, 2025 · 1 comment
Labels
investigation p2-nice-to-have Not breaking anything but nice to have (priority)

Comments

@JaimeTorrealba
Copy link
Member

Description

There is an update in the GLTF structure, now they can accept physics, babylonJs already have implemented it, but there's no example with Three.js. So this could be hard to do.

As we need to investigate if this is possible directly here in this pkg, if we need to make changes in the GLTF parser provided by Three.js (or if we can extend it) and the match them with the components provided by Rapier itself.

Please read the link below for more information.

Suggested solution

Much of the result will define the output. But reading about it, a new component could be a good solution.
import { PhysicalGLTF } from ...` (of course the name has to be defined).

Other option could be adding extension to the existing useGLTF composable provided by cientos

I would prefer not to modify cientos directly for this one. WDYT?

Alternative

Any other alternative is welcome

Additional context

Please check:

Validations

@JaimeTorrealba JaimeTorrealba added investigation p2-nice-to-have Not breaking anything but nice to have (priority) labels Jan 11, 2025
@Neosoulink
Copy link
Collaborator

Neosoulink commented Jan 13, 2025

Nice one, can't wait for this feature!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigation p2-nice-to-have Not breaking anything but nice to have (priority)
Projects
None yet
Development

No branches or pull requests

2 participants