Toudinho
21-02-2008 00:13:55
Hi everyone,
i´ve got a blockclass representing a simple solid block, with a private OgreNewt::Body* attribute. The attribute is initialised within the constructor of the blockclass by using
it hasl also a method to get the Body
now, after the block fell down on my arena i want to reset its Position by doing
at this point my App crashes with an AV trying to get the body out of the mBlock Object.
Hope anyone can help me ^^
Greetz
Sorry guys I just passed the wrong pointer
i´ve got a blockclass representing a simple solid block, with a private OgreNewt::Body* attribute. The attribute is initialised within the constructor of the blockclass by using
new OgreNewt::Body(...)
it hasl also a method to get the Body
OgreNewt::Body* Block::getBody()
{
return mBody;
}
now, after the block fell down on my arena i want to reset its Position by doing
case OIS::KC_R:
{
// mBlock is an Object of my BlockClass
mBlock->getBody()->setPositionOrientation(...);
break;
}
at this point my App crashes with an AV trying to get the body out of the mBlock Object.
Hope anyone can help me ^^
Greetz
Sorry guys I just passed the wrong pointer