Shape Action and Raycast

Hi,

I have created a terrain (cut-up a plane + subdivisions + elevation), and I have cubes roving on this terrain. I use Raycasting to make sure the cube remains aligned and on the terrain as it moves.

I have also created a shape action so that the terrain can deform in time. However, the raycasting only computes the intersection of a ray with the original terrain mesh, whereas I would like the intersection to be computed with the changing mesh. I am seeking to create a game where the terrain can deform in time.

Any hints?

Thanks for your help,

Gordon

This is the wrong place to post. You should ask in the Game-Engine support and discussion thread.
Regardless, you’re looking to call a function from Python - reinstancePhysicsMesh()
This is computationally intensive, so beware if using detailed geometry. This thread will be moved by a moderator in due course.

Moved from “Game Engine Resources” to “Game Engine Support and Discussion”