Asking for advise

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
jbosch
Posts: 43
Joined: Sat May 29, 2010 4:42 pm
Contact:

Asking for advise

Post by jbosch »

Hi there,

This is the little indie game I'm working in since I begun with bepu, wp7 preview and all that. Thanks bepu for making it possible! :D

Well, the game is not finished yet, there is still a lot of work to do. It is a bowling game, but I'm converting it more to an arcade rather than a simulator bowling game. Anyway, the physics parameters are not well defined, or I think so. Please, look at the speed the things move, and the ball doesn't seem to rotate over itself where moving over the floor.

http://www.youtube.com/watch?v=HJ3S04kRnyI

Any ideas would be apreciated!
Jesús Bosch
XNA BLOG: http://geeks.ms/blogs/jbosch
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: Asking for advise

Post by Norbo »

Here's a few things:
-Objects seem to be large/gravity seems to be low. The pins should probably fall faster.
-The bowling ball seems to be pretty light relative to the pins; when it hits the pins, it deflects quite a bit.
-I can't really see the lack of rotating in the video, but that's probably just due to a low friction coefficient (assuming that the ball isn't being 'thrown' down the lane while barely touching the ground). Try increasing the ball's dynamic/static coefficient of friction.
-You can try fine-tuning rotational behavior to see if it feels better. Some options are to change the SimulationSettings.MotionUpdateSettings.inertiaTensorScale static field to something closer to 1. It's higher by default for stability reasons, but bowling pins/balls aren't usually put in super-stability-requiring stacks. The scale field simply multiplies entities' inertia tensors. Scaling up makes things rotationally 'heavy,' and scaling down makes things rotationally 'light.' You can also try:

Code: Select all

space.simulationSettings.motionUpdate.useRK4AngularIntegration = true;
space.simulationSettings.motionUpdate.conserveAngularMomentum = true; 
These force the engine to handle angular motion slightly more realistically, which could look a bit better.
jbosch
Posts: 43
Joined: Sat May 29, 2010 4:42 pm
Contact:

Re: Asking for advise

Post by jbosch »

Jesús Bosch
XNA BLOG: http://geeks.ms/blogs/jbosch
Post Reply