Hi everyone, first post here.
I’m trying to move a mesh physics body with mouse. I want to drag it like it was a normal object, no dynamics, no bounces, no friction, no gravity at all. This is because i want to get collisions infos like distance and normal vector when two meshes collide. I will manage collisions by my own.
I’m using setTargetTransform to move the mesh, but when i stop moving the mouse the mesh keeps moving. I’m using BABYLON.PhysicsMotionType.ANIMATED as motion type. Plus, with PhysicsMotionType.ANIMATED I’m not getting collision event, while with PhysicsMotionType.DYNAMIC I get the event, but like I said I want pure kinematic movement.
This is the playground code:
Thank you very much.