Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DLL Talk / Newton - NDB_NewtonCreateTreeCollision and scaling a problem?

Author
Message
BatVink
Moderator
22
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 13th Feb 2005 06:39
I realise there is a problem with scaling in DB Pro, and retrieving the scaled object sizes. But how do you get around this with NDB_NewtonCreateTreeCollision? You can't pass it a scaled object and create a "good" Body, it creates one of the original dimensions.

I imagine this might also be a problem with hulls.

BatVink
Francesco
21
Years of Service
User Offline
Joined: 11th Apr 2004
Location: Milan, Italy
Posted: 14th Feb 2005 06:02
With the new verison of Walaber's wrapper there is a command that lets you scale the "Newton object" too. It is explained in the last demo of the last wrapper (1.31 and maybe 1.30 too). So after you have scaled the DBPro object scale by the same amount the Newton object and that should the work...I think!
Hope I was helpful
Naevius

Non si inalberi mica con me, sa!
Lei è venuto qui, lei ha il tombino intasato!
Siamo uno spurgo serio, noi!
BatVink
Moderator
22
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 14th Feb 2005 20:05
cheers, I'll check it out.

BatVink
BatVink
Moderator
22
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 15th Feb 2005 04:39
Can't find it

BatVink
Etienne
21
Years of Service
User Offline
Joined: 17th Jan 2004
Location: Paris
Posted: 15th Feb 2005 08:50
can you post the code ?? i'm learning tree collision too ehhee
you don't need to post medias though

A pixel is nothing , lots of can be all
BatVink
Moderator
22
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 16th Feb 2005 20:14
From Walaber:

Quote: "actually yes, in the latest version there are a few un-documented commands for this:

NDB_NewtonCreateTreeCollisionWithScale

set the desired scale into temp vector 1 before calling (NDB_SetVector sx#, sy#, sz#)

also the unpotimized version

NDB_NewtonCreateTreeCollisionWithScaleUnoptimized


you can also do the same for convex hulls:

NDB_NewtonCreateConvexHullWithScale
"


BatVink

Login to post a reply

Server time is: 2025-05-11 14:48:16
Your offset time is: 2025-05-11 14:48:16