Changing the size of a shape

gugus

02-07-2008 17:43:50

I have an actor created with a sphere shape. How can i change the size of the sphere during runtime?

Thanks.

Gohla

02-07-2008 18:34:11

mShape->getNxShape()->isSphere()->setRadius(radius)

gugus

02-07-2008 21:15:53

Thanks.but how do i get the shape from an actor?

betajaen

02-07-2008 22:38:09

Get the collision Model Actor::getCollisionModel() and iterate through it for (Shape* shape = cm.begin();shape = cm->next() ; ).

gugus

03-07-2008 20:22:41

Thanks!