|
-
Programming Semi-random, Smooth Movement
Hey all,
I am trying to figure out how to code (in Java, in case you give a flip) a function to generate a seamless, semi-random, smooth movement of nodes.
I was thinking about having a function generate a point randomly that fits within a certain radius of the node's current position and then travel to that point.
This is all fine and dandy, but I am stuck here. What path will it follow to that point and how will I generate it? The nodes are supposed to appear to move smoothly towards that point generated (they currently kinda just jitter around like kids, high off of caffine and sugar, bouncing around in a small room).
Any idea of how to generate a path from one point to another that isn't a straight line? Once the path is generated, any idea how to store it?
I'm stuck and the algorithm to do what I want is a bit beyond my current knowledge, experience, and ability.
------------------
So they are no longer two, but one. -Matthew 19:6 (NIV)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|