I have ModelEntity in SwiftUI and it moves. But the problem is: when adding generateCollisionShape
method, it doesn't move anymore.
I want a collision effect as well as moving entity how can I attain both?
modelEntityClone.generateCollisionShapes(recursive: true)
modelEntityClone.physicsBody = PhysicsBodyComponent(massProperties: .default,
material: .default,
mode: .dynamic)