Advertisement

Latest collision 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,689 views
    Advertisement

    (new post because forum hangs when posting links)

    The article explains the mass properties if a rigid body, including moment of inertia. We use this to model ‘rotation resistance’ of some object. A stick is easy to rotate if we rotate it around it's longest axis, but hard to rotate if we do so aroun…

    2,270 views

    @cgrant Thank you for replying

    I known that kinematic actors cannot trigger the "onContact" function during collisions with other kinematic actors.

    In fact, I attempted to call it within my PxQueryFilterCallback filter, but I received a warning stating that "onContact" cannot be used for kinematic-to…

    3,547 views
    Help with 3D physics - having trouble getting accurate resolution with friction

    The suggestion to look at old Bullet source was absolutely the best advice anyone could have ever given me. Between that and React Physics 3D, I've learnt so much over the past few days. My rigidbody engine has become fairly stable now. It isn't the most accurate it could be, but the results it gen…

    4,783 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,171 views

    @undefined yeah but like how do i integrate it with the impulse-based collision resolution? 

    If i found a collision in the swept volume do i move the collider in the collision point? Do i have to deal with multiple collision dt and if so how would i handle this since i integrate all the entitie…

    5,637 views
    Help fixing jittering in my character collision

    @Dirk Gregorius I solved it now, thank you for all the help!

    13,590 views
    Java Class, How to Check Collision Between Entities in Same Array?

    JoeJ said:
    (Did not read former replies)

    Your was the first issue and part of the third issue of the four I pointed out.

    @yusufabi It may seem a bit rough, but I recommend reading this paper about asking questions in technical forums. It will help both in asking and in responding to the replies you ha…

    9,719 views
    enigma_dev
    January 17, 2022 05:33 PM
    DevBlog 13 - Large Ship Collision Challenges


    Adding hand-made collision to the large ships so that fighters cannot fly through them.

    I tweaked the model editor so it can load in models to define collision shapes.

    There now is an XRay mode that lets you see wireframe of the ship with colored rendering of collision shapes.

    To debug collision in th…

    8,083 views
    fastcall22
    December 05, 2021 07:56 PM

    Closing.  This thread is starting to attract low quality posts.

    OP, feel free to start a new topic.

    18,019 views

    brebarth221 said:

    Another person wrote somewhere on some forum (can't remember which) that they had a problem with moving collision triangles (like, an animated collision world). Basically the whole collide-and-slide algorithm from that paper didn't work out for him. And the ellipsoid kept falling t…

    19,133 views

    I've never played with an actual physics engine, however If I remember right most physics engines try to move and then correct their position when they find you are passing though something (someone correctly me if I'm wrong on this).
     

    Alternatively you can also do the basic sweep sphere algori…

    4,427 views
    Cast rays always point to world origin (DirectX 11)

    mvp stands for ModelViewProjection, so here it's the multiplication of both.

    4,153 views

    It is SFML. Do not pay attention that it is a Russian language. Just read a code:

    4,756 views

    I think some of your code is a little long-wound compared to what it does, but dammit if it isn't a pretty article, and a beautiful-looking blog! Thanks for sharing!

    3,934 views

    @LorenzoGatti Firstly, I would like to make a comment that there is a mistake in my original working above. It is necessary to take the maximum tFirst, not the minimum tFirst to find the earliest time of intersection. I would also like to add that there are obviously other checks that need to be do…

    12,261 views
    2D Pixel collision detection

    Hello everyone, my previous game which is using cocos v3x was using pixel collision detection from this post : Pixel collision detection for v3.x . Its works nice and properly.
    But now i want to upgrade my game into v4, so far i know Cocos remove GlProgram to Program. So i tried to upgrade it by loo…

    4,236 views

    @internia Hey there,

    We actually have a channel regarding programming help full of friendly programmers over on our Discord server, feel free to come along and pop a question in!

    I'm sure some guys would be more than happy to answer your questions!

    Feel free to pop in and ask any questions, no pressur…

    5,316 views

    Kenshoryu said:

    @JoeJ I realize that moving many sprites by themselves is expensive for the CPU. I think that ideally I should first balance the number of elements on the screen before trying to optimize collision detection. I think if at the time we had few or no games that had many sprites on the …

    15,739 views

    Correct, capsule vs box is not trivial. The rest is rather straight forward

    21,116 views

    This function above simply looks for neighbours of a provided entity (aka anything withing the sphere hull parameter) and adds them to the list. It doesn't actually search for THE entity (I know it's named badly but this is a protected func so I didn't care too much, public functions have nice name…

    4,405 views
    Advertisement
    Advertisement