First attempt at Rope Swinging!
Be aware that I didn't add any animations to the rope and/or player. I am reusing one of the wall climbing animations just for now.
Ropes can't be climbed up and down yet but that will the easy part. I focused in the swinging code, which is far from perfect.
The gameplay will be as follows: when pressing the keys i.e. WSAD, the player will balance (swing the rope) in any direction. Except if the camera (player) is looking up or down a certain angle, in which case the W and S keys will make it climb Up and Down.
Also, the rope will have a better animation. The tail (from the player's hands and down) will swing with inertia. The rope won't thin when it's stressed too much.
But first of all I have to improve the swinging code.
demo here:
http://www.moscafilms.com.br/mgame/demo1110.rar