asvsfs
23-08-2009 14:54:50
i wanted to access userdata but in ogre3dbody there is no userdata and when i use getnxactor()
compiler says there is no actor defined , i want to know how can i have my own userdata for a body?
thx
asvsfs
23-08-2009 14:54:50
betajaen
23-08-2009 16:44:13
asvsfs
23-08-2009 20:57:46
betajaen
23-08-2009 21:22:03
asvsfs
25-08-2009 15:56:23
betajaen
25-08-2009 18:33:44
asvsfs
25-08-2009 18:47:14
asvsfs
26-08-2009 18:18:08
spacegaier
26-08-2009 19:10:04
void onVolumeEvent(NxOgre::Volume* volume, NxOgre::Shape* volumeShape, NxOgre::RigidBody* rigidBody, NxOgre::Shape* rigidBodyShape, unsigned int collisionEvent)
{
if(collisionEvent == NxOgre::Enums::VolumeCollisionType_OnPresence)
{
Beep(1500, 5);
}
}
asvsfs
26-08-2009 19:48:01
spacegaier
26-08-2009 22:17:34
betajaen
26-08-2009 23:22:19
if(collisionEvent & NxOgre::Enums::VolumeCollisionType_OnPresence)
{
Beep(1500, 5);
}
spacegaier
27-08-2009 08:00:10
asvsfs
27-08-2009 12:09:25
1>GameState.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class NxOgre::TimeController * __cdecl NxOgre::Singleton<class NxOgre::TimeController,603>::getSingleton(void)" (__imp_?getSingleton@?$Singleton@VTimeController@NxOgre@@$0CFL@@NxOgre@@SAPAVTimeController@2@XZ)
1>GameState.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class NxOgre::ResourceSystem * __cdecl NxOgre::Singleton<class NxOgre::ResourceSystem,563>::getSingleton(void)" (__imp_?getSingleton@?$Singleton@VResourceSystem@NxOgre@@$0CDD@@NxOgre@@SAPAVResourceSystem@2@XZ)
1>GameState.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static void __cdecl NxOgre::PointerClass<578>::operator delete(void *)" (__imp_??3?$PointerClass@$0CEC@@NxOgre@@SAXPAX@Z)
1>GameState.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static void * __cdecl NxOgre::PointerClass<578>::operator new(unsigned int)" (__imp_??2?$PointerClass@$0CEC@@NxOgre@@SAPAXI@Z)
1>GameState.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual unsigned int __thiscall NxOgre::PointerClass<578>::getClassType(void)const " (__imp_?getClassType@?$PointerClass@$0CEC@@NxOgre@@UBEIXZ)
1>GameState.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual unsigned int __thiscall NxOgre::PointerClass<576>::getClassType(void)const " (__imp_?getClassType@?$PointerClass@$0CEA@@NxOgre@@UBEIXZ)
1>bin\Release\AdvancedOgreFramework.exe : fatal error LNK1120: 6 unresolved externals
spacegaier
27-08-2009 12:45:58
asvsfs
27-08-2009 13:33:49
spacegaier
27-08-2009 13:52:28
asvsfs
28-08-2009 07:19:29
spacegaier
28-08-2009 07:58:09
asvsfs
28-08-2009 08:29:07
spacegaier
28-08-2009 08:44:14
asvsfs
28-08-2009 08:56:08
void onVolumeEvent(NxOgre::Volume* volume, NxOgre::Shape* volumeShape, NxOgre::RigidBody* rigidBody,
NxOgre::Shape* rigidBodyShape, unsigned int collisionEvent)
{
if(collisionEvent == NxOgre::Enums::VolumeCollisionType_OnPresence)
{
if(mTimer->StopWatch(1))
{
MessageBeep(0);
static_cast<ATower*>(volume->UserData)->Attack(m_pSceneMgr);
}
}
}
spacegaier
28-08-2009 09:12:40
if(collisionEvent == NxOgre::Enums::VolumeCollisionType_OnPresence){}
asvsfs
28-08-2009 09:15:48
spacegaier
28-08-2009 17:16:46
yes it get inside of statement
it get into OnVolumeEvent Just once
betajaen
28-08-2009 17:19:36
mScene->createVolume(new NxOgre::Box(4), Matrix44_Identity, this);
void CakeApp::onVolumeEvent(Volume*, Shape* volumeShape, RigidBody* rigidBody, Shape* rigidBodyShape, unsigned int collisionEvent)
{
std::cout << collisionEvent << " vs. " << NxOgre::Enums::VolumeCollisionType_OnPresence << std::endl;
}
4 vs. 4
asvsfs
28-08-2009 20:50:04
betajaen
29-08-2009 23:50:05
Can't delete Volumes.
I'll add a deleteScene function to World and publish it in the next commit.