[Plib-users] camera and scene
Brought to you by:
sjbaker
From: Sharon <sha...@ya...> - 2004-04-15 00:17:44
|
Hi, I wonder if there is any kind of class or variable which I can use to attach a ssgTransform to the camera. Then when I move my camera, the ssgTransform is also moving correctly. For example, I have a car which is a ssgTransform. sgSetCoord ( & carpos, x, y, z, h, p ,r ) ; sgSetCoord ( & campos, xc,yc ,zc, hc, pc, rc). Here I have different y, z for the car's initial position and camera position. I want to make the camera always follow the car. I already did calculation for xy plane. The result turns out very good. Now I want my car to move in the slope. The path's projection can be in yz, or xz plane. As there is y,z difference between car and camera, calculation becomes very complex and boring......:( I tried ssgCutout, it doesn't work for this. Can I get any kind of plib class or variable to do the above work? thanks. Sharon --------------------------------- Do you Yahoo!? Yahoo! Tax Center - File online by April 15th |