Jump to content


Photo

Bounce Off Of Wall?


  • Please log in to reply
5 replies to this topic

#1 lostprophetpunk

lostprophetpunk

    GMC Member

  • New Member
  • 351 posts

Posted 21 February 2008 - 02:25 PM

I have two objects, one is a wall, and the other is a ball.

They are both solid objects.

I would like to know how to make the ball bounce off of the wall. I have set the gravity off the ball to 1, but the ball just goes straight through.

Could someone please help, it would be very appreciated.
  • 0

#2 makerofthegames

makerofthegames

    Never you mind!

  • GMC Member
  • 7521 posts
  • Version:GM:Studio

Posted 21 February 2008 - 02:28 PM

On collision with wall, use this:

:)
  • 0

#3 lostprophetpunk

lostprophetpunk

    GMC Member

  • New Member
  • 351 posts

Posted 21 February 2008 - 02:32 PM

Thank you for the help, but I cannot seem to get it to stop bouncing.
  • 0

#4 icuurd12b42

icuurd12b42

    Self Formed Sentient

  • Retired Staff
  • 15412 posts
  • Version:GM:Studio

Posted 21 February 2008 - 06:36 PM

after the ball bounces used this code

speed *= .9

or set variable speed to speed*.9 dd

That will cause it to loos momentum each bounce
  • 0

#5 10to2

10to2

    GMC Member

  • New Member
  • 75 posts

Posted 21 February 2008 - 07:54 PM

Should the ball be solid?

Sounds odd to me.

TtT
  • 0

#6 icuurd12b42

icuurd12b42

    Self Formed Sentient

  • Retired Staff
  • 15412 posts
  • Version:GM:Studio

Posted 21 February 2008 - 08:16 PM

Should the ball be solid?

Sounds odd to me.

TtT

<{POST_SNAPBACK}>



Your walls should be... In the ball you add bounce agains solid presicelly in the collision event with wall. It might also help to use
move contact solid using direction (for direction) and speed (for maximum) before you bounce.

Sorry, I misread your problem.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users