- #1
mindbreaker
- 1
- 0
hi,
srr if this isn't the wright place to post this...
I'm working on engine (i'm a programer , c++) and I'm stuck at bouncing...
I have an object (repressented by a sphere) at an unknow hight, with an unknow mass and I drop it, so gravity does it job and it starts to fall down
now , when there is a collision with the floor, I want the object to bounce but dependent of it's texture ( ex.: tennisball - bowl ball ) and physical correct ...
how is this done ? I remember I saw this (almost 8 years ago :tongue:) at school ...
note 1: friction (etc) can be ignored (for now , so if this isn't must harder i request this already )
note 2 : this is something that should take place at Earth and at a normal height (so not 150 km above into the sky ) ...
thx anyway
srr if this isn't the wright place to post this...
I'm working on engine (i'm a programer , c++) and I'm stuck at bouncing...
I have an object (repressented by a sphere) at an unknow hight, with an unknow mass and I drop it, so gravity does it job and it starts to fall down
now , when there is a collision with the floor, I want the object to bounce but dependent of it's texture ( ex.: tennisball - bowl ball ) and physical correct ...
how is this done ? I remember I saw this (almost 8 years ago :tongue:) at school ...
note 1: friction (etc) can be ignored (for now , so if this isn't must harder i request this already )
note 2 : this is something that should take place at Earth and at a normal height (so not 150 km above into the sky ) ...
thx anyway