Request: Physic configuration template for different objects

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
User avatar
leiradel
Party member
Posts: 184
Joined: Thu Mar 11, 2010 3:40 am
Location: Lisbon, Portugal

Re: Request: Physic configuration template for different obj

Post by leiradel »

weilies wrote:Sorry guys,

i dont mean to open a physic class here but to enquire any available, i mean tested planet simulation
So that a 500g basket ball can bounce like it suppose to be, a 3kg stone will not bounce, and a 1kg wooden box can bounce but not as high as the basket ball
It depends not only on gravity and mass, but also on the properties of the bodies. I.e. a 500g basket ball bounces, but a 500g stone doesn't.

I'm not much into Box2D but I think you can apply a force to make e.g. a basket ball bounce in a collision callback?
User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

Re: Request: Physic configuration template for different obj

Post by kikito »

For modelling a basketball, it's easier to just give its shape a high restitution. It will make the ball "bouncy" without having to use collision callbacks at all.
When I write def I mean function.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 2 guests