Dynamic Physics Queries

I want to be able to do sphere or box queries from lua, specifying the radius/height/width in code.

A sort of backup strategy for this would be to be able to set the size of an already existing physics body during runtime or creating a collision object with specific parameters, but it seems the physics layer in the engine is pretty rigid right now.

I’m building a game where I want to have varying sizes on collision objects depending on player input.

1 Like

Good point! The only idea I can come up with that would make your example work with the current features, would be to ray-cast instead. It would be a quite complex and awkward solution (doing multiple raycasts and analyzing how you hit something), but it would definitely work.