GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Make arrow stick in the ground?

Hey guys. So my 'Apple Shooter' template is coming along nicely, and hope to have it finished quite soon. Im just trying to figure out how to make the arrow stick in the wall/floor/enemy at the exact angle and position it was in when it collided with the actor. I've managed to get the arrow to stop, but then it just tilts and falls flat. Any ideas? Cheers :)

Comments

  • joshiwujoshiwu Posts: 207Member

    Well you've basically said it yourself. You want to get its angle, and its X and Y position.
    These can be real number attribute made in the arrow actor itself , if you want to fire multiple arrows.

  • joshiwujoshiwu Posts: 207Member

    Now if you are trying to give it a 3D effect. Then you can't strictly base it on collision

  • MarpCarkMarpCark Posts: 121Member

    @joshiwu ah ok i think im with you, gimme a sec while i try it.

  • joshiwujoshiwu Posts: 207Member

    If colliding with tree And self position Y is >= the apples Yvposition

  • MarpCarkMarpCark Posts: 121Member

    @joshiwu Thanks for your input, in the end i just cranked up the drag and angular drag on the arrow to like 1000, seemed to sort it all out. :)

  • joshiwujoshiwu Posts: 207Member

    Lol, if it works , it works, but that relies on a graphical collision

Sign In or Register to comment.