3dstreet icon indicating copy to clipboard operation
3dstreet copied to clipboard

remove rigging from vehicles

Open kfarr opened this issue 2 years ago β€’ 1 comments

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

kfarr avatar Mar 15 '24 16:03 kfarr

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.

gnansai avatar Mar 21 '24 04:03 gnansai