Collision with jit.gl.path

James Charlton's icon

Hi I dont seem to be able use jit.gl.path work with jit.phys.body. Is there anyway I can make a pathstyle operate as a physics object?

Thanks James

Rob Ramirez's icon

you can use jit.path in conjunction with phys.multiple to construct a rigid-body of a path, by adding a simple shape to each path point.
check out the Day 9 physics patch-a-day for inspiration:
https://cycling74.com/tutorials/00-physics-patch-a-day/