Results 1 to 10 of 12

Thread: Irrlicht and Newton ConvexHull

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    hi thanks, yes i wrote a directx renderer previously in dx9, added newton and it worked just fine, but now i want to implement it into irrlicht... anyways i think i have solved some of the problems, just having a little trouble with inertia now..
    Last edited by Colin; 18-01-2011 at 04:15 PM.

  2. #2
    Just use NewtonConvexCollisionCalculateInertialMatrix, this function can calculate a correct inertial matrix for you and should work better than calculating it yourself.

  3. #3
    aha, thank you very much, that works great, however there is 1 small thing, is there a way to stop them bouncing so much? makes them look unrealistic, even when i set the mass higher, they still bounce around and look unrealistic, once they start falling and rolling, they look ok, but the bouncing is not good.

    for example download here

    thanks

  4. #4
    Just apply different materials to your objects. Lower the material's softness and change elasticity values to get the object to react like it's heavier.

  5. #5
    aha... thank you , everything now is working absolutly perfect now, thanks alot for the help.

    1 other quick question regarding newton 2.29 does it still have procedure to set the freeze threshold ?

    -Colin
    Last edited by Colin; 18-01-2011 at 09:34 PM.

  6. #6
    No, it is no longer necessary in Newton 2.x. Back in 1.x you had to do e.g. unfreeze a body manually using unfreeze and/or setting the threshold, but in 2.x the callbacks for transformation are always called as long as enough force is applied onto the body. So basically this functionality is now handled internally and the user is no longer forced to do it.

  7. #7
    aha excellent, thanks again

    if u want to check out how i got along, you can test out the box machine gun (lol) press spacebar once, then move and give it a hold, the boxes are newtoncube and the others are convexhull (i know such object should not be created with hull since slower) but was just a test.. tell me how you like it so far.

    download here

    -Colin

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •