‘let carMesh: BABYLON.TransformNode = …’
How to set gravity for Mesh object of TransformNode class?
I have enabled physics for the current scene, and I can use the .physicsImpostor property to set impostors for individual meshes created with MeshBuilder().
But I’m using BABYLON.ContainerAssetTask method to batch import meshes and render them when needed, when rendering I get type BABYLON.TransformNode, I don’t know how to set impostors for these meshes, is there any code sample or tutorial?
You have to check in your transform hierarchy which one is the mesh.
Usually, the first transform node is the root node and along the children hiearchy, there are the meshes.
Did you try to access loadedMeshes
from ContainerAssetTask?