Collision checking

About Monkey 2 Forums Monkey 2 Programming Help Collision checking

This topic contains 3 replies, has 3 voices, and was last updated by  sLiveR 1 year, 5 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #11304

    sLiveR
    Participant

    Hi folks,

    is there a internal Class/Method to check collisions (Rect to Tect, Circle to Circle) in mojo?
    I’m not using Pyro or anything else, just plain Monkey Stuff.

    Can’t find anything…

    #11305

    Pakz
    Participant

    I think there is something for collision in the rect class.

    Maybe the physics lib has the right things. I have not used it yet though.

    on my github i have a number of collision functions that I copy and paste in my projects.

    https://github.com/Pakz001/Monkey2examples

    #11310

    Mark Sibly
    Keymaster

    Rect does have an ‘intesersection’ method, but no, not really, you’l have to do it yourself or go 3rd party for now.

    I will probably add some simple functionality for this eventually though (probably to ‘std’ module)  – if you post an issue at github, it’ll give me a hurry up.

    #11326

    sLiveR
    Participant

    Thank’s to both of you for the answer 🙂

    I’ll try the Rect-Class collision later.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.