I'm trying to make a 3d pong game. And i have a problem with the way the ball curves. No matter what the ball will rotate but will not curve in 3d space. Gravity is off and it bounces perfectly, although there is rotation persent, there is no curving.
Does anyone know what kind of script i could use to manualy make the ball curve....im thinking of taking the axis rotation off the ball and then add a force somehow to the direction its rotating.
curve balls do rotation in air, is a somewhat complicated fluid dynamics phenomenon involving Bernoulli's principle, so you will have to code your own physics in this situation. luckily if you don't mind fine tuning it to your liking instead of going for realism, you could put a line like this in some script on the ball.
Do the codes interfere with eachother? My ball is bouncing like crazy and not really curving. My fudgeFactor is on 10, any higher and theres no control of the ball.
Ive tried with both codes and then each code separatly and its not curving or changing direction while in the "air", my rotation is not frozen. Any other ideas, is there a way to just manually make it curve?
Wow thanks, it works fine now. I made the frame rate faster and i realized that i used that vector3.cross on a collision function. I put it in an update function and it works like a charm. Thanks a lot!