Post your questions, suggestions and experiences regarding game design, integration of external libraries here. For irrEdit, irrXML and irrKlang, see the ambiera forums
i made a program with many sphere nodes in it,and, i wanted to use a physics engine because i noticed that the spheres where moving and passing each other.
so i used newton engine and set Collision bodies to the spheres
but before that if i wanted to move the spheres i would work with irrlicht directly
no no, thats updating postions....i mean when like u press w and the sphere moves
so what shall i move do i move the irrlicht scene node or newton body !!?
and i know its newton body then what is the code to move it???
omar shaaban wrote:no no, thats updating postions....i mean when like u press w and the sphere moves
so what shall i move do i move the irrlicht scene node or newton body !!?
and i know its newton body then what is the code to move it???
have you looked at IrrNewt? it will give you a good example of doing what you are asking.
IrrNewt is a good library that youc an integrate very easily into your game design. Give it a try and see what you think. if you have any questions with it, we can help out.
Dorth wrote:Impulses are what you are looking for.
i understand..what i meant was who is controlling who...
irrlicht scene node or newton body node
anyway i am using or atleast trying irrnewt which cant compile!!
Dorth wrote:Impulses are what you are looking for.
i understand..what i meant was who is controlling who...
irrlicht scene node or newton body node
anyway i am using or atleast trying irrnewt which cant compile!!
this is how i do it...., but remember that IrrNewt already has access to the Irrlicht node and moves it when I access m_NewtonBody->SetPosition(vec); if you are not using IrrNewt, then you just need to move the Irrlicht node yourself.