About "Cannon Physics" Template.

gawakamygawakamy Member Posts: 109
edited April 2012 in Working with GS (Mac)
Hi, GS dudes.
I am using Cannon Physics Template, and have found out an error. When I shot the cannon ball to 90 degree upside, the ball never fall down on to the ground again. What should I fix?

Best Answers

  • MotherHooseMotherHoose Posts: 2,456
    Accepted Answer

    perhaps on cannonBall:

    Rule: when
    Attribute: self.Position.Y ≤ 540
    -Interpolate: self.Position.Y To: 535 … Duration: 0.1

    still … at 90° … ball falls straight down into cannon

    image MH
  • gawakamygawakamy Posts: 109
    Accepted Answer
    @MotherHoose I have found out what wrong was. Attribute: self.Position.Y ≤ 540 must be Attribute: self.Position.Y >540. And then it works. Thanks :D

Answers

  • MotherHooseMotherHoose Member Posts: 2,456
    edited April 2012
    the ball continues to accelerate up … till destroyed at approx: self.Y=1014

    you could put a groundActorInstance above the sky …in the grey area
    … but when the cannonBall collides with that actor … it will fall right back into the cannonBarrel

    image MH
  • gawakamygawakamy Member Posts: 109
    @MotherHoose. I also have found out it was not only 90 degree. The ball does never come back down to the ground even 70~80 degree too. What I want is the ball comes bakc to the ground again. Are there any else idea? I already tried what you said, but it was not good for game.
  • JoeMeisterJoeMeister Member Posts: 602
    Like mother said just put some actors around the outer perimeters and make up a rule in the Ball actor that says when it overlaps with these "walls" to collide and NOT to destroy.
    Download Monkey Cannon for free today and you see what I mean. Its based on that template as well-with a lot of changes.
    Good Luck.
  • gawakamygawakamy Member Posts: 109
    @MotherHoose I tried it, but just the speed of the ball is increased very fast.

    @JoeMeister Where is the Monkey Cannon, please?
Sign In or Register to comment.