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.

DarkBASIC Professional Discussion / Crouching in Newton(scale Newton object realtime?)

Author
Message
TuPP3
19
Years of Service
User Offline
Joined: 26th Jan 2007
Location: [+--]FINLAND
Posted: 25th Apr 2010 19:17 Edited at: 25th Apr 2010 19:18
I ran to this weird problem that DarkBASIC is not recognizing command:

NDB_NewtonConvexHullModifierSetMatrix(Col2)
at all, it says "Could not understand command at line x" and when I remove that piece of code the game compiles fine, without the modifier though.

Whole initialization of the player:


As far as I've read the manual that is the only way to make Newton object scalable realtime so that I could make crouching possible.

Is there any other way around this? Change the collision object etc?
(using DB 7.5 beta 11)
Thebeely
21
Years of Service
User Offline
Joined: 4th May 2005
Location: Croatia
Posted: 28th Apr 2010 22:56
dude....
TuPP3
19
Years of Service
User Offline
Joined: 26th Jan 2007
Location: [+--]FINLAND
Posted: 29th Apr 2010 16:17 Edited at: 29th Apr 2010 16:18
Oh my..., I swear I tried that, and many other variations but I guess I had something else wrong at the time.

The reason I ended up with using the function with brackets was because of the manual pointed so:


and other functions in the manual without the brackets are indicated wihout the brackets:


Well, thanks.
Thebeely
21
Years of Service
User Offline
Joined: 4th May 2005
Location: Croatia
Posted: 3rd May 2010 22:17
Glad I could help
tiresius
23
Years of Service
User Offline
Joined: 13th Nov 2002
Location: MA USA
Posted: 4th May 2010 00:44
I'll try to fix the doc if I remember. Thanks for the report!


A 3D marble platformer using Newton physics.

Login to post a reply

Server time is: 2026-07-28 07:08:57
Your offset time is: 2026-07-28 07:08:57