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

remove rigging from vehicles #501

Open
kfarr opened this issue Mar 15, 2024 · 1 comment
Open

remove rigging from vehicles #501

kfarr opened this issue Mar 15, 2024 · 1 comment

Comments

@kfarr
Copy link
Collaborator

kfarr commented Mar 15, 2024

I would like remove the need for having rigs for vehicles to spin their wheels. Having a rig complicates using the model in some applications. (ie in some use cases such as instancing it is not allowed to use rigging)

Instead I suggest to have named nodes (meshes) for each of the 4 wheels. Our code would then traverse to find those named nodes and rotate the wheels when needed.

We could start with 1 model to test and rewrite the wheel spinning component

If it works then do the rest

@gnansai
Copy link
Collaborator

gnansai commented Mar 21, 2024

Hi @kfarr
Here is a model that you can test with.
https://github.com/gnansai/3dstreet-assets-dist/blob/main/sets/vehicles/gltf-exports/draco/trash-truck-side-loading.glb

I have separated the wheels and named them like this.
F-front wheels
B-back wheels
L- left
R- right

image

You could select the objects under the "trash-truck-side-loading" model by the name of "wheel" and add the rotation.

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

No branches or pull requests

2 participants