Havok Physics with animation clipping

I have a ball that I want pushed around by a wall, but it clips through the wall unless the wall is moving very slowly. How can I make this work?

What is the best way to have animated objects affect Havok physics objects? I know I could use impulses to move my objects around, but this doesn’t give me as much control as keyframed positions done from Blender.

@qq2315137135 gives a solution in: Making one body push another using physics - #3 by qq2315137135

physicsAggregate.body.setPrestepType(BABYLON.PhysicsPrestepType.ACTION);

Updated PG

2 Likes

Thank you so much! I kept searching but don’t know why I couldn’t find that.

1 Like