A question about creating primitive geometry from 0

Hello to everyone, I’m working on a simple game that allow the player to create Bridge under a ball. I need to know if i can create a Bridge using vertices… I also need to use Physx to roll the ball on this bridge.

An good example is this game: http://maxandthemagicmarker.com/demo/

Anyone can tell me how can i create primitive shapes as this game? Thanks a Lot! =)

To procedurally create a rendered mesh, check out the Mesh class. For the collider, attach box colliders at runtime.

Thanks a lot, i will read it now! =)