Jump to content
  • Advertisement
  • entries
    743
  • comments
    1924
  • views
    582779

Winding things up

Sign in to follow this  
Aardvajk

936 views

winding.jpg

Started experimenting with having the grapple rope wind around objects in the world, and got a bit carried away :)

I think it is working okay, although hard to be sure. At the moment there is no way to unwind the rope, so a little hard to be sure it is catching every case. I'm just doing a raycast along the segment, then finding the closest edge point on the shape that is hit to the ray intersection point to get the actual wind point. I need to do something like store a normal as well representing the direction it is wound, so I can later then test to see if a point has been "unwound" and needs to be removed from the list.

All this gets a lot harder when you consider attaching points to other moving objects, but I'll keep on it in a static environment first then see if it can be extended to cope with moving objects too. Bit simpler.
Sign in to follow this  


0 Comments


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!