StaticBody question
Posted: Thu Dec 04, 2008 2:26 pm
First post, and first things first - great library Scott, thanks, much appreciated.
Now a question. As discussed somewhere on this forum, boxes bouncing around inside a rotating box can be accomplished by using a static body comprising segments as the outer box, giving it an angular velocity, and updating the static hash. Works fine, but is this the correct approach for the following:
Imagine a hamster running around the inside of a wheel. I want the wheel to move, plus I want to estimate the power and torque generated by the little critter. So I spin a couple of (dynamic) shapes inside the stationary wheel and it doesn't turn, no matter how sticky or heavy I make the 'feet'. I'm guessing that I will need to make the wheel a dynamic body, but then gravity affects it. Pin it at the centre of rotation? Or is there something I've missed with the static body approach?
Now a question. As discussed somewhere on this forum, boxes bouncing around inside a rotating box can be accomplished by using a static body comprising segments as the outer box, giving it an angular velocity, and updating the static hash. Works fine, but is this the correct approach for the following:
Imagine a hamster running around the inside of a wheel. I want the wheel to move, plus I want to estimate the power and torque generated by the little critter. So I spin a couple of (dynamic) shapes inside the stationary wheel and it doesn't turn, no matter how sticky or heavy I make the 'feet'. I'm guessing that I will need to make the wheel a dynamic body, but then gravity affects it. Pin it at the centre of rotation? Or is there something I've missed with the static body approach?