|
|
None wrote:
> I've been having fun with my balls... uh, anyway, I've converted that old C
> code of mine entirely to SDL.
>
> The physics, the ball collisions and rotations are pretty solid. Stupidly,
> the part I haven't gotten my head around entirely is how to rotate the
> Povray spheres for display! You'll notice the ball rotations "drift" a
> little, visually not rotating exactly as the physics engine is rotating.
> So, while the physics is doing the right thing, the Povray ball "rotation"
> visuals seem to indicate something's off, but it's just the sphere's visual
> rotation. I wish I could just directly apply my physics rotation vectors
> to the sphere.
You can apply any convential rotation matrix to a POV-Ray object using
the 'matrix' keyword.
Christoph
--
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 2 Sep. 2003 _____./\/^>_*_<^\/\.______
Post a reply to this message
|
|