Change Collision Shape with a rule

tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
edited November -1 in Working with GS (Mac)
Is it possible to change the collision shape or your actor with a rule? I want to do this because as soon as the scene loads my round object rolls around before you even begin playing so i want it to sit still until some other action has occurred. I setup a rule when

self.position.y is < than 340

Change attribute
self.physics.collision shape to Circle

but that didn't work, I'm assuming because the collision attribute is not a text attribute.
Any Ideas?

Comments

  • expired_012expired_012 Member Posts: 1,802
    not possible
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Damn it how is it not possible. its a predefined attribute. How else can i make a round object sit still until something else hits it or something like that.
  • netdzynrnetdzynr Member Posts: 296
    You could use invisible actors (with different collision shapes) as collision detectors for your "live" actors. You can constrain invisible actors to the positions of the live actors.
  • RondoRocketRondoRocket Member Posts: 411
    Is it possible to attach more than one invisible actor to a single actor for collision?
  • netdzynrnetdzynr Member Posts: 296
    I don't see why not, but you'll need to account for what happens on each collision. In response to the original post, I was imagining more of having two invisible actors, on with a rect collision shape, and one with a circle, of which only one was active at any time.
Sign In or Register to comment.