heyanthony / jmonkeyengine

Automatically exported from code.google.com/p/jmonkeyengine
0 stars 0 forks source link

BetterCharacterControl bouncing issue #650

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
When creating a BetterCharacterControl for my game, I spent about 2 days trying 
to figure out why it would bounce no matter what I did.  Turns out, if the 
diameter is larger than the height, then it starts to bounce.  The height of 
the bounce is directly related to how much wider it is than tall.  I didn't 
intend for mine to be short, I simply entered in an incorrect value 
accidentally for the height, so at the moment it is not affecting me anymore.  
But I suspect it could cause issues later on if not addressed.  I have attached 
a simple code sample that will replicate this behavior.  It is basically the 
HelloCollision test modified to use a BetterCharacterControl, and with a flat 
plane so that it doesn't rely on town.zip.  It should bounce the way it is now. 
 Then change 3.5f at line 63 to 1.5f and it should return to the expected 
behavior.

Original issue reported on code.google.com by malachip...@gmail.com on 10 Mar 2015 at 12:54

Attachments: