cassius Posted August 8, 2010 Share Posted August 8, 2010 Hi Is there any way to make a ball bounce using physics in the editor? I can make them float like a balloon but not bounce. 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...
AggrorJorn Posted August 8, 2010 Share Posted August 8, 2010 Perhaps you can record the velocity when it impacts on the ground and calculate that into a force that is being added to the ball to send it back in to the air. so perhaps something like: record impact velocity divide the velocity by gravity add the calculated value as a force to the ball Quote Link to comment Share on other sites More sharing options...
DaDonik Posted August 8, 2010 Share Posted August 8, 2010 Use the following lua script for you ball: require("scripts/class") local class=CreateClass(...) function class:CreateObject(model) local object=self.super:CreateObject(model) model:SetElasticity(3.0) end The documentation says that only values from 0.0 to 1.0 can be passed to SetElasticity, but anything below 1.0 will not make the ball bounce nicely. Quote (Win7 64bit) && (i7 3770K @ 3,5ghz) && (16gb DDR3 @ 1600mhz) && (Geforce660TI) Link to comment Share on other sites More sharing options...
Pancakes Posted August 8, 2010 Share Posted August 8, 2010 i saw the title and i lol'd but seeing as you mean the bouncy kind, I'm sorry I cannot help Quote Core I5 2.67 / 16GB RAM / GTX 670 Zbrush/ Blender / Photoshop CS6 / Renoise / Genetica / Leadwerks 3 Link to comment Share on other sites More sharing options...
macklebee Posted August 8, 2010 Share Posted August 8, 2010 so you were going to help with the other kind? Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
cassius Posted August 8, 2010 Author Share Posted August 8, 2010 Thanks for the answers including the naughty ones.I will try that lua script 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...
cassius Posted August 8, 2010 Author Share Posted August 8, 2010 That worked fine dadonic exept I found an elasticity of 2.0 suited me better as the ball stops bouncing quicker. 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...
DaDonik Posted August 8, 2010 Share Posted August 8, 2010 Glad it worked for you Quote (Win7 64bit) && (i7 3770K @ 3,5ghz) && (16gb DDR3 @ 1600mhz) && (Geforce660TI) 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.