Results 1 to 5 of 5
Like Tree1Thanks
  • 1 Post By chiro

Math Help - Rotation of a ball after collision.

  1. #1
    Newbie
    Joined
    Jun 2013
    From
    Croatia
    Posts
    5

    Rotation of a ball after collision.

    Hello.
    I'm doing 2D/3D ball collision simulation. All the physics are done but I can't figure out the rotation. Now I got it rotating around x axis, but its not pretty.
    I have all that I need, I hope:Both ball position on impact, their outgoing vector (represented by x,y,z), ball diameter, their speed (which is slowed down periodically), balls current rotation.
    I tried to accomplish that with rotation matrix, but I failed.

    Hope you can help me. Thank you!
    Follow Math Help Forum on Facebook and Google+

  2. #2
    MHF Contributor
    Joined
    Sep 2012
    From
    Australia
    Posts
    3,664
    Thanks
    606

    Re: Rotation of a ball after collision.

    Hey Antonio144.

    Have you factored in your physics the inertia matrix for your object?

    Once you factor this in with the angular momentum you should be able to handle rotating objects.
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Newbie
    Joined
    Jun 2013
    From
    Croatia
    Posts
    5

    Re: Rotation of a ball after collision.

    I have not. Can you elaborate a bit on that? Thanks.
    Follow Math Help Forum on Facebook and Google+

  4. #4
    MHF Contributor
    Joined
    Sep 2012
    From
    Australia
    Posts
    3,664
    Thanks
    606

    Re: Rotation of a ball after collision.

    Basically the idea is that you have a rotational axis that corresponds to the geometry and mass distribution of the object and this is used in calculations for angular momentum and thus, for rotational velocity/force.

    This is not a trivial topic: having a physics engine that is stable is a difficult thing. Essentially you need to have collision detection and force integration schemes that are stable.

    Once you have the moment of inertia, you basically apply a force with respect to the axis (think of a rotation) and this involves some matrix and vector mathematics.

    You will need routines to figure out the moment of inertia for a geometric object (which is a matrix) and then you will use this matrix to deal with the angular momentum and force.

    There is a book that I have personally owned by O'Reilly publishing that deals with these issues:

    Physics for Game Developers-O'Reilly Media

    If you can get an open source physics engine, this would also help you in your quest.

    Again, the topic is not trivial so forgive me if you wanted to get a one post solution.
    Thanks from Antonio144
    Follow Math Help Forum on Facebook and Google+

  5. #5
    Newbie
    Joined
    Jun 2013
    From
    Croatia
    Posts
    5

    Re: Rotation of a ball after collision.

    Thank you for the help. I will read up on all the topics mentioned here and the book you recommended. Thanks!
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Angle of rotation and axis of rotation of a 3x3 matrix
    Posted in the Advanced Algebra Forum
    Replies: 1
    Last Post: April 14th 2013, 07:34 AM
  2. translating world rotation values to local rotation axis
    Posted in the Advanced Algebra Forum
    Replies: 0
    Last Post: April 12th 2013, 07:24 AM
  3. Replies: 0
    Last Post: January 14th 2012, 08:02 PM
  4. linear map open iff image of unit ball contains ball around 0
    Posted in the Differential Geometry Forum
    Replies: 2
    Last Post: May 25th 2010, 01:15 AM
  5. Before collision/after collision
    Posted in the Math Topics Forum
    Replies: 0
    Last Post: May 6th 2010, 06:24 PM

Search Tags


/mathhelpforum @mathhelpforum