Vineeth@nxOgre
05-04-2008 15:17:00
t->mWorldInstance = t->getWorld();\
t->mTargetCloth=t->getCloth();\
I have created a virtual function getcloth in Cake so that i can initialize mtargetCloth of Cake
Then i created a public member in Decoration class called cloth which would be initialized by the prestart of frosting method along with the mWorld by Worldinstance.
I have the cloth available in the frosting class .how can i cast into ClothRaycaster class.The constructor of clothraycaster takes only mScene

the castcloth member function expects pose an dorientation which i have already defined in the sponge cake
t->mTargetCloth=t->getCloth();\
I have created a virtual function getcloth in Cake so that i can initialize mtargetCloth of Cake
Then i created a public member in Decoration class called cloth which would be initialized by the prestart of frosting method along with the mWorld by Worldinstance.
I have the cloth available in the frosting class .how can i cast into ClothRaycaster class.The constructor of clothraycaster takes only mScene
void Frosting::preStart(World* w,Cloth* c) {
mWorld = w;
mCloth=c;
Scenes* mScenes=mWorld->getScenes();
mScene=mScenes->get("myScene");
mRay = new RayCaster(mCamera->getPosition(), Vector3(0,0,0), 100, RayCaster::RCT_CLOSEST, mScene);
mClothRay = new ClothRayCaster(mScene);
//mClothRay->castCloth(mCloth,)
the castcloth member function expects pose an dorientation which i have already defined in the sponge cake