how to create rigid bodies in irrlicht?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
suresh kumar
Posts: 13
Joined: Fri Mar 11, 2011 7:06 am

Post by suresh kumar »

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....
The Journey is more important than the destination...
suresh kumar
Posts: 13
Joined: Fri Mar 11, 2011 7:06 am

Post by suresh kumar »

can anyone tell me how to do freeze transform through code?
The Journey is more important than the destination...
suresh kumar
Posts: 13
Joined: Fri Mar 11, 2011 7:06 am

Post by suresh kumar »

can any one give me a sample code on how to receive events from buttons?

All helps are highly appreciated
The Journey is more important than the destination...
serengeor
Posts: 1712
Joined: Tue Jan 13, 2009 7:34 pm
Location: Lithuania

Post by serengeor »

suresh kumar wrote:can any one give me a sample code on how to receive events from buttons?

All helps are highly appreciated
Can you look at tutorials first....? Try to study a bit before asking.
Working on game: Marrbles (Currently stopped).
suresh kumar
Posts: 13
Joined: Fri Mar 11, 2011 7:06 am

Post by suresh kumar »

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?
The Journey is more important than the destination...
serengeor
Posts: 1712
Joined: Tue Jan 13, 2009 7:34 pm
Location: Lithuania

Post by serengeor »

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?
Show the code its hard to guess what you're missing.
Working on game: Marrbles (Currently stopped).
Post Reply