actually i donno what s wrong but the same code is running without any hassle now.
what First i did .....
i stored all the boxes in an array, so inside the collision function i retrieved the objects in array one by one into a new variable and checked intersectswithBox function. like IsceneNode *pTemp = array[0] RESULT FAILED
This works...
Now i directly used array like array[0].getTransfor..... like this and it is working now.
Last thing in the first scenario i didnt initialised array with null before assigning objects.But later i did, like
array[j] = null; array[j] = object;
i guess this may be the reason,but still im not clear because when debugging it gave me the position of objects correctly.only thing is IntersectsWithBox was not working.
Hopefully i will help someone....
how to create rigid bodies in irrlicht?
-
suresh kumar
- Posts: 13
- Joined: Fri Mar 11, 2011 7:06 am
-
suresh kumar
- Posts: 13
- Joined: Fri Mar 11, 2011 7:06 am
-
suresh kumar
- Posts: 13
- Joined: Fri Mar 11, 2011 7:06 am
Can you look at tutorials first....? Try to study a bit before asking.suresh kumar wrote:can any one give me a sample code on how to receive events from buttons?
All helps are highly appreciated
Working on game: Marrbles (Currently stopped).
-
suresh kumar
- Posts: 13
- Joined: Fri Mar 11, 2011 7:06 am
i went through the tutorials i tried everything but im unable to receive events from gui.
First i created an object of class which implements IEventREceiver and that class overrides onEvent function also.Second thing while creating the device i passed that object as event receiver. Is this enough to receive gui events or im missing anything?
First i created an object of class which implements IEventREceiver and that class overrides onEvent function also.Second thing while creating the device i passed that object as event receiver. Is this enough to receive gui events or im missing anything?
The Journey is more important than the destination...
Show the code its hard to guess what you're missing.suresh kumar wrote:i went through the tutorials i tried everything but im unable to receive events from gui.
First i created an object of class which implements IEventREceiver and that class overrides onEvent function also.Second thing while creating the device i passed that object as event receiver. Is this enough to receive gui events or im missing anything?
Working on game: Marrbles (Currently stopped).