ISceneNode->GetTransformedBoundingBox()->GetExtent() ?

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.
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

hmm, maybe changes in newer versions (but I'm in doubt) ???
I'm using Newton v1.5 and I set the callback for the body this way:

Code: Select all

NewtonBodySetForceAndTorqueCallback(body, newtonForceAndTorqueCallback);
where the callback looks like this:

Code: Select all

void newtonForceAndTorqueCallback(const NewtonBody* body){
.
.
.
}
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
qwertyCoder
Posts: 40
Joined: Wed May 07, 2008 4:37 pm
Location: Asheville, NC, USA

Post by qwertyCoder »

Ok so I needed a typecast

Code: Select all

NewtonBodySetForceAndTorqueCallback(body,	
				(NewtonApplyForceAndTorque)callbackApplyGravity);
So now it compiles but im still a little ways off from proper testing of collisions, here goes :)


-edit-
Im using Newton for windows 2.04, no idea what earlier versions look like, maybe I should be using said earlier version?
---------------------------------------

Code: Select all

int main()
{
	if (bCodeDoesntWork)
	{
		int res = AttemptFix(this);
		if (failed(res))
		{
			PullHair();
		}
	}
}
---------------------------------------
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

qwertyCoder wrote:Im using Newton for windows 2.04, no idea what earlier versions look like, maybe I should be using said earlier version?
I had a look at that version...
It's still in beta state and it seems that there are major changes, especially with the material system... :shock:
also I found no API docs for it (maybe I didn't search hard enough)...
the only thing that would be interesting in this version is the destructible body...

maybe I'll try to adapt v2.04 in future, but for now v1.53 suits my need more than well... ;)
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
qwertyCoder
Posts: 40
Joined: Wed May 07, 2008 4:37 pm
Location: Asheville, NC, USA

Post by qwertyCoder »

Should I download and use 1.53 or continue to use the 2.04 beta?
---------------------------------------

Code: Select all

int main()
{
	if (bCodeDoesntWork)
	{
		int res = AttemptFix(this);
		if (failed(res))
		{
			PullHair();
		}
	}
}
---------------------------------------
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

qwertyCoder wrote:Should I download and use 1.53 or continue to use the 2.04 beta?
well, that's entirely up to you... ;)

I, for myself, will stick with 1.53...
there are some reasons for this:
1st - 2.xx is still in beta state (so I'll wait for a rc, at least)
2nd - AFAIK all Newton wrappers around here (and probably 99.9% of the Newton users here) are using 1.53 so you'll probably get more/faster help with it
3rd - I wrote my own Irrlicht-Newton wrapper and I have no intention to recode everything :lol:

maybe check out the differences between 1.53 and 2.04 and decide if you need the new features and if it's worth to use it...

also if you're familiar with the Newton basics with 1.53, then it'll be easy to switch to 2.04 later when it's out of beta state, for sure... ;)
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
Post Reply