Rick Posted May 19, 2013 Posted May 19, 2013 Is there a way to get things to bounce? Say like a basketball on the ground or something like that. Quote
cassius Posted May 20, 2013 Posted May 20, 2013 I used this in le2. model:SetElasticity(2.5) Don;t have le3 yet. Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++
beo6 Posted May 20, 2013 Posted May 20, 2013 I know it is not physically correct, but you could do something like this. function Script:Start() self.currentBounciness = 0 self.bounciness = 500 end function Script:Collision(entity, position, normal, speed) if speed > 3 then if ( self.currentBounciness ) == 0 then self.currentBounciness = self.bounciness else self.entity:AddForce(0, self.currentBounciness, 0) self.currentBounciness = self.currentBounciness / 2 end end end Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.