Screw Dynamics
Screws are close to the simplest type of machine, it's even classified as a simple machine. When you crank a screw around into say, wood, it vertically translates the blades on the screw up, therefore vertically translating the whole thing down into the wood.
The problem is that I'm not driving a screw into some material, I'm spinning a screw so a character can run on it. This means I need the blades to stay horizontally static. This can me a little hard to understand, but for now just take my word for it.
The Problem
I had to figure out how to keep those blades horizontally still while the whole screw rotated around. At first I was trying to calculate the time it should take for the screw to move horizontally in the given distance using the blade mesh and some odd trig. When I got screwy values, I realized I was over-thinking this problem and there must be a simpler way. So I posted a thread on gamedev.net and sure enough someone was helpful and solved my problem.
The Solution
So, what needs to take place to keep the spiral's blades horizontally static is the spiral needs to move down as it rotates. The hard part is how much to move the spiral down every second. This distance is found by calculating the distance between one blade and the next, technically exactly one period around. Basically this equals the height of the the spiral divided by the number of blades. So if rotating n revolutions per second, one needs to translate ( n * horizontal blade distance) per second. This provided what seemed like correct results.
WOOT! I figured it out! Right?
Well as it happened the blades were mostly static but I could notice them moving slightly. I scratched my head a little and went back to an idea I had before. When the spiral completes a loop it translates back to it's starting point. At this point I wasn't doing anything to the rotation, and therefor it kept incrementing from the last loop. This caused the blades to offset slightly. After every loop I reset the rotation to zero, and now it works perfectly!
Moving On
Now that I've got the spiral moving correctly, I can move on to positioning the character according the the spiral mesh's materials. I also need to start thinking about positioning obstacles and what systems are going to be needed.
Friday, August 29, 2008
Tuesday, August 26, 2008
Intro
Ride the Spiral
"Reaching out to Embrace the Random" - Tool
Overview:
Ride the Spiral is a rhythmic puzzle game based on the Tool song Lateralus and a Fusion Frenzy mini-game called Twisted System. The main character will be thrown into a twisting spiral screw on which he'll have to run and avoid obstacles as they spin towards him. The spiral is composed of regions that have their own special qualities. These regions are called lines of reason, and each line of reason will define it's own gameplay, obstacle avoidance technique, look, and overall experience.
Subscribe to:
Posts (Atom)
