Rick Posted May 19, 2013 Share 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 Link to comment Share on other sites More sharing options...
cassius Posted May 20, 2013 Share 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++ Link to comment Share on other sites More sharing options...
Rick Posted May 20, 2013 Author Share Posted May 20, 2013 Sorry, in LE3 I mean. Quote Link to comment Share on other sites More sharing options...
beo6 Posted May 20, 2013 Share 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 Link to comment Share on other sites More sharing options...
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.