Advertisement

Latest collisiondetection Activity

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). Yo…

    1,703 views
    Advertisement

    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.

    9,978 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…

    4,174 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

    8,566 views
    syncing hit detection with animation in UE4

    Hello everyone,

    I am trying to figure out how diablo4 does the new animated hit detection in this video: 

    As you can see the gree damage area gives a better feeling of “hit”. I really want to simulate this in unreal engine with c++. I have created a simple scenario: player clicks on attack, anim…

    7,148 views
    clb
    December 31, 2020 11:38 AM

    fudgeracoon said:

    I'm writing my very first 2D game engine in C++ and SDL2. I wrote a very simplistic RigidBody class that computes the resultant force, applies forces and simulates gravity. I also wrote a BoxCollider class and a QuadTree class which as any game dev would know manages collisions. Ev…

    5,951 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 and …

    7,168 views
    Advertisement
    Advertisement