How to find collision points:

0 favourites
  • 1 posts
From the Asset Store
Connect the dots in the correct order and draw happy animals!
  • Hello,

    I couldn't find a way to find the specific collision point between 2 objects. Found this topic, but I can't reply in it because it is old.

    Here is what I tried, in case it helps anyone:

    You can create your own collision points and check using them.

    - At start of layout:

    -- For each Polygon point on your moving object A:

    --- Create a CollisionPoint object (a simple circle) at the polygon point X,Y

    --- Add the CollisionPoint object as a child to A

    - On CollisionPoint collision with another object:

    -- Do something

    Now you can control the distribution (shape and count) of CollisionPoint objects using the collision polygon.

    Note: there are sprite expressions now to get Polygon Point Count and Position of each.

    Update1:

    I just noticed that Physics has ContactXAt and ContactYAt expressions to get contact points. I might give it a try later.

    Hope this helps!

    Please let me know if there are more efficient ways.

    Thanks.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)