Questions about my game character.
Posted: Wed Aug 25, 2010 9:52 am
Hey First of all you've done a really great job... its the best physics engine I used. ( Jitter,JigLibx ect..) and thank you for doing such a wonder full job.
Once I get a grip about the Engine I will help you support people on the forums. "Supporting and Coding at the same time is not an easy task after all" 
So anyway lets move to my problem haha...
Well I have this Ball Fight kinda game. so basically to achieve realistic and fun ball behaviors (bounce,bump,roll) I needed physics. I tried BEPU and it works great except for 1 little thing.
I really can't stop the ball from Rolling. I just want to the ball to keep still after bouncing.
Example: Ball jumps, collides to wall bumps back , falls to the ground then bounces a little with the "BOUNCENESS Property" then it just keeps on rolling...
Is there a way to make the ball keep the characteristics except rolling? Its a character after all we don't want it to move randomly D:
Ok Next:
So the user controls the ball. I really have no idea how to make proper ball movement like
move to right
move to left
jump.
currently I have this
I think I need to limit how much it can just because it current flies with that code. no idea how to do it though
and the left and right just keeps on accelerating it gets faster and faster, I basically want to limit the speed.
and so heres the last problem. The game uses 3D objects right, but I only want to ball to roll bump and do things on X,Y axis (2D) and thefore stop it from rolling in the Z direction.
is there a way to stop this too?
Finally thank you for taking your time reading this, and future thanks for any responses. I am relatively new to XNA but I will try to understand any procedures or explanation that can help me solve my problem.
Thank you very much
Clark~


So anyway lets move to my problem haha...
Well I have this Ball Fight kinda game. so basically to achieve realistic and fun ball behaviors (bounce,bump,roll) I needed physics. I tried BEPU and it works great except for 1 little thing.
I really can't stop the ball from Rolling. I just want to the ball to keep still after bouncing.
Example: Ball jumps, collides to wall bumps back , falls to the ground then bounces a little with the "BOUNCENESS Property" then it just keeps on rolling...
Is there a way to make the ball keep the characteristics except rolling? Its a character after all we don't want it to move randomly D:
Ok Next:
So the user controls the ball. I really have no idea how to make proper ball movement like
move to right
move to left
jump.
currently I have this
Code: Select all
public void Jump()
{
Entity.ApplyLinearImpulse(new Vector3(0, 100, 0));
}
public void MoveLeft()
{
Entity.ApplyLinearImpulse(new Vector3(-20, 0, 0));
}
public void MoveRight()
{
Entity.ApplyLinearImpulse(new Vector3(20, 0, 0));
}
and the left and right just keeps on accelerating it gets faster and faster, I basically want to limit the speed.
and so heres the last problem. The game uses 3D objects right, but I only want to ball to roll bump and do things on X,Y axis (2D) and thefore stop it from rolling in the Z direction.
is there a way to stop this too?
Finally thank you for taking your time reading this, and future thanks for any responses. I am relatively new to XNA but I will try to understand any procedures or explanation that can help me solve my problem.
Thank you very much
Clark~