Constraining Collision Shapes

TouchTiltGamesTouchTiltGames Member Posts: 1,162
edited February 2012 in Working with GS (Mac)
I have an actor that moves with controls and a collision shape that I've got constrained to the actor. Is there a way to constrain this shape to the actor but to allow that constraining shape to be the collision with the ground instead of the actor? There must be a way...

Comments

  • RacetotheMoonRacetotheMoon Member Posts: 323
    Sure. Just tell your collision object to collide with the ground rather than the character object.
  • SAZ_1SAZ_1 Member Posts: 397
    LOL... i don't know if thats a sarcastic reply or not but i found it funny! ... having said that it makes sense...if you only need one of them to collide with the ground then just make that the collider... if at some point you need both to collide then just add a rule collide only when so on etc...
  • CloudsClouds Member Posts: 1,599
    @SAZ_1 & @RacetotheMoon

    Although it sounds like it should work . . . . . it doesn't.

    (because he (TouchTiltGames) is constraining the 'collision shape' to the actor it will not interact with the 'ground' object.)
  • TouchTiltGamesTouchTiltGames Member Posts: 1,162
    Thank you Tynan, that's what I was saying. I figured this was the answer but wanted to see if there was an alternative. :(

    Cheers guys.
  • CloudsClouds Member Posts: 1,599
    edited February 2012
    @TouchTiltGames

    "wanted to see if there was an alternative"

    Sure, parent the opposite way to what you suspect you should do and all will be well (constrain the actor to the collision shape, rather than the collision shape to the actor).

    If they share a common centre point everything works fine.

    Like this:

    http://www.mediafire.com/?ghcukhdlh152chw
Sign In or Register to comment.