Open kfarr opened 3 months ago
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
You could select the objects under the "trash-truck-side-loading" model by the name of "wheel" and add the rotation.
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