I'm visualizing in my head how to make a stable rope for CC (no bouncing or anything).
I want to take a portion of a vector and extract it into two separate vectors.
Like say take only the velocity of an object that is moving away from another object and separate its total velocity.
Then maybe add the velocity that was taken away to the other object.
It sounds weird so I drew a picture.
The Grey arrows are the velocity before the script is applied (where the object wants to go).
The red ones are what I'd ideally want to happen after the script is applied (the magnitudes aren't quite right).
Don't worry, if the object every gets too far away, I can always use set magnitude and the vector away from the object it's in to keep its position in check.
I just don't know which of the functions (
http://wiki.datarealms.com/wiki/index.p ... ocs/Vector ) I could use or if it's even possible. Thanks.
EDIT: Turns out what I was looking for was called "Vector Projection" and it took until a Calculus 3 class to learn it! They need to teach this kind of stuff in middle school, methinks.