Create Collision tree for Irrlicht

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

Create Collision tree for Irrlicht

Postby rrg » Sun Aug 10, 2008 10:59 pm

I'm slowly but surly learning how to use newtons with irrlicht. I have succeeded in having objects colliding with each other. However I am having trouble with the collision tree part of it. I want to be able to load a level and use the collision tree to make object react with it. The tutorial 3 that talks about tree collision but it just confused me with the

collision = NewtonCreateTreeCollision(nWorld, LevelCollisionCallback);

how you can set LevelCollisionCallback to NULL and add triangle face youself. but i am lost with that. So can someone show me how to load a level with a file format .x or .3ds and use the collision tree so object will react and bounce off (not go through it) the level. Thanks in advance.
rrg
 
Posts: 2
Joined: Sun Aug 10, 2008 10:48 pm

Re: Create Collision tree for Irrlicht

Postby Firefly » Wed Aug 13, 2008 1:59 am

I don't know much about Irrlicht but you could look at the code I provided for creating a collision tree for Quake BSP's in the FAQ.

Here: viewtopic.php?f=15&t=3235
Firefly
 
Posts: 32
Joined: Wed Jan 17, 2007 4:58 am


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 3 guests

cron