[Pogamut-list] Raytracing Bug
michal.bida
pogamut-forum at diana.ms.mff.cuni.cz
Wed May 26 12:31:58 CEST 2010
Re: Raytracing Bug
Author: michal.bida
Still working on the issue. Seems it is not at the GameBots2004 side. If you want ray tracing to work properly, do not use flagChanged method and instead make a listener to AutoTraceRay objects. E.g.:
{CODE()}
IWorldObjectListener myObjList = new IWorldObjectListener() {
public void notify(IWorldObjectEvent event) {
user.severe("Event: " + event.toString() + "; Id: " + event.getObject().getId().getStringId());
}
};
{CODE}
Do not forget to register this listener with worldview through:
{CODE()}
getWorldView().addObjectListener(AutoTraceRay.class, myObjList);
{CODE}
Best,
Michal
--
Reply Link: <http://diana.ms.mff.cuni.cz/main/tiki-view_forum_thread.php?forumId=4&comments_reply_threadId=4&comments_parentId=194&post_reply=1#form>
More information about the Pogamut-list
mailing list