Is this impossible?

MattSodenMattSoden Member Posts: 30
edited January 2015 in Working with GS (PC)

Is it possible to constrain 3 actors (A, B & C) together where each has 'collision' rules that affect the whole group?

By rotating three 90px x 52px rectangles through 60degree steps, you can create a pretty decent hexagon.

Constraining A to B, B to C and C to A just leaves the actor group immobile - and constraining both B & C to A means that in effect only A is doing the collision work.

Is there a sneaky way to constrain the three together so that all will reacte if one of the outer edges strikes another object?

(I'm trying to make a hexagonal collision box on the sly...)

Comments

  • SocksSocks London, UK.Member Posts: 12,822
    edited January 2015

    @MattSoden said:
    Is there a sneaky way to constrain the three together so that all will reacte if one of the outer edges strikes another object?

    'React' is a vague term, if you want the hexagon to 'react' with its environment as in objects will collide and bounce off it then the maths is pretty simple, if you want the hexagon itself to bounce off objects then the maths is fiendishly difficult, but in theory not impossible.

    To constrain 3 actors together where each has a 'collision' rule that affect the whole group is as simple as constraining them together and having a global attribute that is triggered if any of the 3 actors meet the condition that triggers the rule.

    @MattSoden said:
    (I'm trying to make a hexagonal collision box on the sly...)

    A circle is a pretty good fit - depending on your needs.

Sign In or Register to comment.