Lets say I have Kinematic Body A which has a specific velocity and pushes against Ridig Body B. It now applies some force against the Rigid Body, pushing it away. Now since Body A is Kinematic, it doesnt matter which mass the Rigid Body B has. It always gets pushed away the same distance, if the velocity of A doesnt change.
But is there a way to control the amount of forces a Kinematic Body can apply to a Rigid Body??
Because in the end, I have a Ping Pong simulation where I can control the Ping Pong Racket (which is Kinematic) and I can hit a ball with it, but in my opinion the forces applied to the ball are way too much. Can I just at some point set a flag which says the Kinematic Body should always apply half the forces it normally would?
Code: Select all
// This is my Kinematic Body:
btRigidBody* kinematicBody; // I set it Kinematic somewhere else
//And this is how I update the position and orientation of the body
btTransform T;
kinematicBody->getMotionState()->setWorldTransform(T);