Share with us how are you using the powerrrr of the force
Moderator: Alain
by coimbra79 » Sun Jun 27, 2010 1:54 pm
hello everybody!
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!
-
coimbra79
-
- Posts: 42
- Joined: Sun Jun 27, 2010 1:39 pm
by JernejL » Sun Jun 27, 2010 2:29 pm
-
JernejL
-
- Posts: 1578
- Joined: Mon Dec 06, 2004 2:00 pm
- Location: Slovenia
-
by coimbra79 » Sun Jun 27, 2010 3:14 pm
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!
-
coimbra79
-
- Posts: 42
- Joined: Sun Jun 27, 2010 1:39 pm
by coimbra79 » Sun Jul 04, 2010 7:53 pm
-
coimbra79
-
- Posts: 42
- Joined: Sun Jun 27, 2010 1:39 pm
by 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
-
- Posts: 12249
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
by 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
-
coimbra79
-
- Posts: 42
- Joined: Sun Jun 27, 2010 1:39 pm
by 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
-
coimbra79
-
- Posts: 42
- Joined: Sun Jun 27, 2010 1:39 pm
by Julio Jerez » Thu Jul 08, 2010 8:13 am
you should use the joint library, and not those joints
-
Julio Jerez
- Moderator
-
- Posts: 12249
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
by coimbra79 » Fri Jul 09, 2010 3:02 pm
i did it
-
coimbra79
-
- Posts: 42
- Joined: Sun Jun 27, 2010 1:39 pm
by 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
-
- Posts: 12249
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
by 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?
-
coimbra79
-
- Posts: 42
- Joined: Sun Jun 27, 2010 1:39 pm
by 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.
-
JernejL
-
- Posts: 1578
- Joined: Mon Dec 06, 2004 2:00 pm
- Location: Slovenia
-
by 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?
-
coimbra79
-
- Posts: 42
- Joined: Sun Jun 27, 2010 1:39 pm
by JernejL » Fri Jul 16, 2010 2:20 pm
You mean like for world boundaries or the map objects?
-
JernejL
-
- Posts: 1578
- Joined: Mon Dec 06, 2004 2:00 pm
- Location: Slovenia
-
by 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).
and walls that force subjects in a well defined, so that they can be locked in that space (picture 2).
tnk!
-
coimbra79
-
- Posts: 42
- Joined: Sun Jun 27, 2010 1:39 pm
Return to User Gallery
Who is online
Users browsing this forum: No registered users and 3 guests