Does ogre allow to attach the same object multiple times? If yes, how can I check if the object is already attached?
This is what I'm currently doing but I'm not sure if it will return null all the times
Code: Select all
if (mTarget.getAttachedObject(mCamera.getName()) != null) {
mTarget.detachObject(mCamera);
}