Hi!
Here’s a little FPS blend with a virtual (laser Light) rope. To catch things or swing with it.
Left Mouse button: attach the rope
Right Mouse button: detach the rope
Mousewheel up: make rope shorter
Mousewheel down: make rope longer.
When swinging you can apply some power and direction with the WASD-keys.
The physics code was quite challenging to find out. Especially to get rid of bouncing when “falling into the rope”.
Hint: Objects for connection must have the last collision layer enabled for the mouse to be detected.
(Another approach would be to use compose a rigid-body-chain. Will have to look into it.)
Now we can make a Spiderman game ![]()
UPBGE 0.3
FPS_Constraint.blend (1.3 MB)
Grab:
Swing: