Can I make something break if hit hard/fast enough?

StormyStudioStormyStudio United KingdomMember Posts: 3,989
edited November -1 in Working with GS (Mac)
Is it possible to make an actor destroy after colliding at a certain strength,

A simple version of what I want:

A block falls onto the ground, if it has fallen far enough, it should speed up. If it is travelling a certain speed when it hits the ground it smashes (plays smashing animation).

Would of thought it is possible using velocity or something.

I just can't quite get my head around it to make it work?

Comments

  • firemaplegamesfiremaplegames Member Posts: 3,211
    You have access to an actor's linear motion, through Motion.Linear.Y.

    So you could have a Rule like this:

    Rule
    All
    When Actor collides with Ground
    When self.Linear.Y < -100(or whatever)
    Do something...

    I haven't tested it, but that SHOULD work.
  • firemaplegamesfiremaplegames Member Posts: 3,211
    yes, what tshirt said...
  • StormyStudioStormyStudio United KingdomMember Posts: 3,989
    Cheers to you both. Will test either tonight or tomo depending on the little one that does not sleep
Sign In or Register to comment.