3rd dimension Verlet integration

posted to: Updated Collisions

Hi all,

Can someone explain me how implement this for any surface normal ? 

I don't know how make collision in verlet integration with any surface in 3rd dimension please, someone for help pls ?


1 love
Reply
  • Martin Bergwerf replied

    Hi Jeremy,

    I am not sure I understand what you are asking.

    Are you having trouble, doing this in 3D, or are you having trouble, doing this for 'custom' Surface orientations.

    The first woudl be simple, so I am guessing you mean the second; then i'd suggest you stay in 2D first and try and solve it there. Once you've managed that, the transition to 3D should be relatively easy. But don't get me wrong, even in 2D, this won't be easy and the extra calculations will make everything a lot slower, probably.

    2 loves
  • jeremy harou(Zlibou) replied

    First of all, thank you for your reply.

    I meant for custom surface orientation, I did it in 2D and I understand the logic except for the transformation around the surface normal, but in 3D, I don't know, because the lesson doesn't clearly explain how the math works for the transformation around the surface normal.

    I would like to be able to make collisions on any surface.

    Sorry for my broken English.

    1 love
  • Martin Bergwerf replied

    Hi Jeremy,

    Thank you for your clarification.

    What you want, is beyond the scope of the Course, but you can figure it out, with what you have learned so far. The situation is basically, something this (in 2D):

    Reflection_00.png

    You know how we Translatated the reflection plane with the Vector Math Add and Subtract Nodes.

    Now we have to do something similar, but with a Vector Rotate Node.

    Good luck, don't give up!

    2 loves
  • jeremy harou(Zlibou) replied

    Thanks i will try this ;)

    • 👍
    1 love