Advertisement

Latest collisiondetection Activity

collision detection, and collision resolvement!!!   a is easier than b.

2,523 views
Advertisement
How does SWEPT AABB collision work in 3D space with objects of different sizes?

In the case of small round objects (bullets, hand grenades, etc) here's what I did:

  • Rather than a true AABB, i used a structure like this
  • XMFLOAT3 vCenter
  • float XScalar, float YScalar, float ZScalar
  • This gives you the center of AABB, and then three vectors that can be stretched on each axis (X,Y,Z). …

    3,366 views

    It took me while but I found the bug and fixed it. I rewrote most of the code for general solution. Above code is not valid anymore. Thanks.

    11,252 views

    dorcsyful said:
    Do you maybe have a suggestion on how I can check if the simplex GJK returns is correct?

    Store your minkowski vertices as point A and vector (A-B), rather than only A-B like you do now. Then, you can know the points on shape A and B in world space that make up the simplex on each obje…

    5,131 views

    Aloxen said:
    I need it to get my game working for my school project.

    Thread locked. We have a “no homework” policy here. We may need to institute a “no Pascal” rule too. :p

    10,579 views
    alex.coaton
    August 23, 2020 08:17 PM
    Arkanoid and PyGame Collision Detection
    Background

    I chose to write an Arkanoid-like clone (see the original below), assuming this would be a relatively simple place to start with PyGame.

    Arkanoid. Fresh outta the 80s.

    So I coded away and felt joy and satisfaction as I quickly implemented a sprite sheet loader, platform movement, block an…

    8,498 views
    Advertisement
    Advertisement