Jump to content
Posted 30 October 2012 - 05:36 PM
Posted 31 October 2012 - 12:00 AM
I'm not sure but I don't think the ball is actually rotating physics-wise. Sure, it has a rotating marble texture, but I don't think rotational motion is being considered at all in the physics simulation (for good reason - it's very difficult to control a "real" ball with spin, if you've ever played table tennis for instance you'll know that)
ball rotating while moving
Velocity is already independent of camera position, it's your game engine's job to ensure the camera doesn't somehow influence the ball's velocity - Bullet doesn't even know what a camera is.
the ball will be always moving straight depending on where the camera is looking it
Edited by Bacterius, 31 October 2012 - 04:56 AM.
“If I understand the standard right it is legal and safe to do this but the resulting value could be anything.”
Posted 31 October 2012 - 08:13 AM
Edited by Medo3337, 31 October 2012 - 08:35 AM.
Posted 31 October 2012 - 11:43 AM
In physics, when a ball move, it must be rotating as well, so I guess that should be done using Bullet Physics since no ball can be moving without rotating.
I have tried to use body->setLinearVelocity() and I see it's rotating now, but I can't get the ball to behave like the ball in the video.
Posted 31 October 2012 - 01:54 PM
Edited by Medo3337, 31 October 2012 - 01:58 PM.