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 problem (friction and bounciness)

Author
Message
Gnomes Games
18
Years of Service
User Offline
Joined: 25th Dec 2005
Location: FRANCE
Posted: 29th Jun 2007 13:16
Hi everybody thanks to read this post !

I have a problem,I am trying to convert my game that use ODE into a game that use Newton...

My game is very complete so their is a lot of things to change :

My questions :
First :
Spheres doesn't works so I use a capsule with the same radius and the same height (this is a sphere )

Can I put some friction to it ?
If I can with what command ?


Second :
With what command can I control the bounciness of my ball ?


Please help !

Just fun !-><-! nuf tsuJ
Sorry for my so bad english
Math89
20
Years of Service
User Offline
Joined: 23rd Jan 2004
Location: UK
Posted: 29th Jun 2007 14:59
You have to create 2 materials : one for the ball and one for the walls. You should have a look to the materials exemple (because I can't remember what are the commands ).
Gnomes Games
18
Years of Service
User Offline
Joined: 25th Dec 2005
Location: FRANCE
Posted: 29th Jun 2007 15:02 Edited at: 29th Jun 2007 16:45
Thanks !!

Ok.

Hey your are Math89 from the french forum isn't it ?

Just fun !-><-! nuf tsuJ
Sorry for my so bad english
Gnomes Games
18
Years of Service
User Offline
Joined: 25th Dec 2005
Location: FRANCE
Posted: 29th Jun 2007 18:44 Edited at: 29th Jun 2007 19:01
I have a new problem with newton

This command NDB_getcollisionbodytobody(ball,mursniveau) is always at 0 before and after using NDB_Newtonupdate time#.

ball is my body index for my ball
mursniveau is my body index for my map

They are differents from 0 .

Does somebody have an idea ?

EDIT : I have add NDB_NewtonMaterialSetCollisionCallback ballmaterial, wallmaterial

but their are no changes...

Just fun !-><-! nuf tsuJ
Sorry for my so bad english
Gnomes Games
18
Years of Service
User Offline
Joined: 25th Dec 2005
Location: FRANCE
Posted: 29th Jun 2007 19:06
I found the problem ,I called NDB_NewtonMaterialSetCollisionCallback ballmaterial, wallmaterial before making my materials...

Just fun !-><-! nuf tsuJ
Sorry for my so bad english

Login to post a reply

Server time is: 2024-11-22 21:54:02
Your offset time is: 2024-11-22 21:54:02