So I really wanted to use cloth in my Game Engines assignment. Our task is to re-create the basic idea of breakout but with interesting PhysX mechanics added into it. I’ve come up with the following idea to implement cloth into the game:
A piece of cloth is attached to two boxes by its edges like a suspended parachute. The games ball then lands in the centre and then rolls into the centre. When the player holds down the space bar, the two boxes move away from each other, making the cloth pull upwards quickly – the resultant force should propel the sphere up into the air!
The player then has to control the two boxes in order to re-capture the ball and then fire it off in different directions (depending on where it is on the piece of cloth…) in order to destroy the blocks above. Of course the cloth will be un-tearable so that the ball won’t crash through and ruin the game.
I’m going to try and implement this over the next few days depending on how much work I can get done on my dissertation project. I am not sure if the sphere will actually collide correctly with the cloth, so this will be an experiment to see if the idea is actually viable as a method of gameplay.