seriously learnig NGD

Share with us how are you using the powerrrr of the force

Moderator: Alain

seriously learnig NGD

Postby coimbra79 » Sun Jun 27, 2010 1:54 pm

hello everybody! :D
Someone can tellme wre i can see for a complete documentation about NGD :?:

i'm building a realtime graphic engine in vb6 (work begin in 2006), it is coming over...
i'll be happy to share demos and codes with NGD village.

regards from Italy!
User avatar
coimbra79
 
Posts: 42
Joined: Sun Jun 27, 2010 1:39 pm

Re: seriously learnig NGD

Postby JernejL » Sun Jun 27, 2010 2:29 pm

The WIKI is as complete as it gets: http://newtondynamics.com/wiki/index.ph ... =Main_Page
Help improving the Newton Game Dynamics WIKI
User avatar
JernejL
 
Posts: 1578
Joined: Mon Dec 06, 2004 2:00 pm
Location: Slovenia

Re: seriously learnig NGD

Postby coimbra79 » Sun Jun 27, 2010 3:14 pm

Delfi wrote:The WIKI is as complete as it gets: http://newtondynamics.com/wiki/index.ph ... =Main_Page


Wow... I LIKE U!!!
tanks for immediate reply!!

I allready looked some from wiki and memorized some function, infact my engine (coiAxis*) allready implement NGD collision type (box,sph,cyl etc...) but all the HULL,CONVEX complex collision primitives interface, that cannot understand only consulting NGDwiki.

I can try more and more helped by wiki, alternatively 4 all i cant understand i'll quest u.

SORRY 4 MY ENGLISH!
User avatar
coimbra79
 
Posts: 42
Joined: Sun Jun 27, 2010 1:39 pm

Re: seriously learnig NGD

Postby coimbra79 » Sun Jul 04, 2010 7:53 pm

User avatar
coimbra79
 
Posts: 42
Joined: Sun Jun 27, 2010 1:39 pm

Re: seriously learnig NGD

Postby Julio Jerez » Mon Jul 05, 2010 12:53 am

Hey that's very cool, it is like the balls are dancing to the beat of the music, how you do that?:D
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: seriously learnig NGD

Postby coimbra79 » Mon Jul 05, 2010 8:42 am

I just assigned some commands to the xbox pad, some do seem bodies, others activate the force field of attraction and repulsion. To make things more pleasant, I have determined that the force is directly proportional to the distance of the body than the core of the magnetic field, rather than inversely proportional as in reality (Coulomb), then recorded and edited in the file that you've seen. music pricey as 'Porcellain' makes everything more fun :wink:
User avatar
coimbra79
 
Posts: 42
Joined: Sun Jun 27, 2010 1:39 pm

Re: seriously learnig NGD

Postby coimbra79 » Thu Jul 08, 2010 6:46 am

I'm adding to my game engine, the possibility of use joint of Newton.
Start with the ball ... Now a question:
What should I do with the first oject immediately after i create it?
I'll explain: if my system is simply composed of two joint bodies, I call 2 'NewtonConstraintCreateBall' or a single (after creating both bodies)? I read the example on newtonwiki and I realized that the first body is attached to the world, but his example (which I chose for its simplicity and clarity), it seems that for the first there is a call to 'NewtonConstraintCreateBall' ... what is the truth?
tanks
User avatar
coimbra79
 
Posts: 42
Joined: Sun Jun 27, 2010 1:39 pm

Re: seriously learnig NGD

Postby Julio Jerez » Thu Jul 08, 2010 8:13 am

you should use the joint library, and not those joints
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: seriously learnig NGD

Postby coimbra79 » Fri Jul 09, 2010 3:02 pm

i did it :wink:
User avatar
coimbra79
 
Posts: 42
Joined: Sun Jun 27, 2010 1:39 pm

Re: seriously learnig NGD

Postby Julio Jerez » Fri Jul 09, 2010 3:15 pm

NewtonCreateBall take two pointr to two diffrent bodies, just as ismple as that.

NewtonBody* childBody, const NewtonBody* parentBody
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: seriously learnig NGD

Postby coimbra79 » Mon Jul 12, 2010 4:48 am

Julio Jerez wrote:NewtonCreateBall take two pointr to two diffrent bodies, just as ismple as that.

NewtonBody* childBody, const NewtonBody* parentBody


you're right ... I missed the statement from dll to VB, in fact 'createball' is a function not a sub (half a day lost to a triviality.)
excuse for another elementary question:
someone could tell me what are the pointers of the matrix containing the data of the vector of 'rotation'?
tanks
I can manipulate the orientation of an oject using the matrix while NGD is running, without using forces?
User avatar
coimbra79
 
Posts: 42
Joined: Sun Jun 27, 2010 1:39 pm

Re: seriously learnig NGD

Postby JernejL » Mon Jul 12, 2010 9:01 am

You can force a rotation change by using newtonbodysetmatrix, this is useful for example to teleport / reorient a object instantly without physical interaction.

The matrix is a ordinarx 4x4 matrix as used by graphics engines.
Help improving the Newton Game Dynamics WIKI
User avatar
JernejL
 
Posts: 1578
Joined: Mon Dec 06, 2004 2:00 pm
Location: Slovenia

Re: seriously learnig NGD

Postby coimbra79 » Fri Jul 16, 2010 7:58 am

yes! tnk!
one of the last requests please ...
now I'm at a point where I need to create the map.
so I need to send NGD, a series of walls and land.
basic physics that allows me to enclose world events
what is the right method?
User avatar
coimbra79
 
Posts: 42
Joined: Sun Jun 27, 2010 1:39 pm

Re: seriously learnig NGD

Postby JernejL » Fri Jul 16, 2010 2:20 pm

You mean like for world boundaries or the map objects?
Help improving the Newton Game Dynamics WIKI
User avatar
JernejL
 
Posts: 1578
Joined: Mon Dec 06, 2004 2:00 pm
Location: Slovenia

Re: seriously learnig NGD

Postby coimbra79 » Sun Jul 18, 2010 1:39 pm

need to send to NGD, a land where, hypothetically, the subject of an animated scene can move (figure 1).
Image
and walls that force subjects in a well defined, so that they can be locked in that space (picture 2).
Image
tnk!
User avatar
coimbra79
 
Posts: 42
Joined: Sun Jun 27, 2010 1:39 pm

Next

Return to User Gallery

Who is online

Users browsing this forum: No registered users and 3 guests