Re: [Plib-users] transforming a sgSphere each frame ?
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2000-05-10 02:48:17
|
Oliver Batchelor wrote: > > for a frustum cull I need to transform a sgSphere each frame by a > matrix but If I use the orthoXform then it gets changed each frame ? > how can I avoid this ? I think you need to make a copy of the sphere and transform that. > the sphere::getCentre how do I use that also It returns a pointer to > a sgfloat but I cant make it equal to a sgVec3 and If I make it > equal to a float * then use it like > > variable[0] variable[1] variable[2] for the x y and z it > contains rubish ... I'm not sure I understand your problem - but those routines are only a couple of lines each - so "Use the Source Luke". -- Steve Baker http://web2.airmail.net/sjbaker1 sjb...@ai... (home) http://www.woodsoup.org/~sbaker sj...@ht... (work) |