#hi does anyone know how to make this ball bouncing system ?

1 messages · Page 1 of 1 (latest)

normal ocean
grave lion
#

property

#

and it also seems like the gravity is a little higher than usual

#

might wanna tweak that

normal ocean
grave lion
#

lemme try

#

it seems to work

#

maybe i dont get it

#

what exactly is the thing that you are looking for

#

in the video

stray solstice
#

the ball bouncing bro 🙏

chilly finch
#

@normal ocean I know how to mathematically and conceptually do it if that helps

chilly finch
# normal ocean Yea pls
  1. Create a raycast that consistently checks the ball's height
  2. store maximum height that the ball went
  3. When the ball hits the ground, make it go back up by the maximum height of the ball but only 80% of it (max_height*.8)
  4. repeat step 1 - 3 recursively till the height is basically negligable then stop
chilly finch
normal ocean