SpiderMan Swinging

Blitz3D Forums/Blitz3D Programming/SpiderMan Swinging

GIB3D(Posted 2009) [#1]
Does anyone know how to setup swinging like in the spiderman games (and other games) using JV-ODE or PhysX? Using a ordinary joint limits you and doesn't allow slack.


_PJ_(Posted 2009) [#2]
This is the demo - rope code from JV-ODE

However, for games, you may need to restrict the ANGLE each segment can move from the alignment of the segment higher up (this would effectively give a form of tension to the rope)
and perhaps, restrict the axis of movement too, allowing for the swinging to be only in x directions, depending on your needs.

It may even be preferable to use cylinders or extended cubes instead of spheres too, to ensure that the rope doesn't get twisted. AGain, though, this is very dependent on your requrements.




GIB3D(Posted 2009) [#3]
Here is what I have so far for spiderman-like swinging. I didn't want to use the rope because you have to calculate how many joints you would need between where you clicked and where you are. What I wanted was one line that you can swing on and you can move freely between the distance the line was created. This example uses rope though.

PhysX




Nexinarus(Posted 2012) [#4]
GIB3D.. I cant seem to get your code to work am i missing something?