So, I’m looking to recreate bowling balls that curve as in real bowling. I want to move a ball down the lane using forces. But I want the ball to rotate as it’s moving down the lane-- but only going straight. Then, when the ball hits a collision detector it reacts (it curves the proper amount).
Is this possible? If so, can some one draw me up a quick example? Thanks!
Texturing is a whole other topic that could have a tutorial of it’s own. The Roll-A-Ball is a beginner’s tutorial. Tutorials that follow it deal with textured surfaces. https://unity3d.com/learn/tutorials
Short answer: you can assign shaders and textures through Unity’s Material class.
You can add a texture to the Roll-A-Ball’s material if you want to see it roll around. This would be something good to experiment with after going through that tutorial.
Thank you, but I don’t think you understand what I’m trying to figure out. I want to rotate a gameobject while it moves with a force to an object, but the rotation force of the object doesn’t effect it’s force until it hits a certain block.
If I assigned the angularVelocity of the rigidbody on a frictionless floor, would it not ‘curve’ at all? If the friction level was 0. If so, that would work good.
I’m not 100% sure, I haven’t worked with physics materials much. Seems like it should just prevent the ball from passing through while not “grabbing” the rotation, but how physics in my head works and how Unity physics work are different things…
Oh! It is slightly working actually. I notice a difference when it rotates when it hits the friction lane part. It stops rotating! But it doesn’t effect it’s direction at all.
You might need to swap out the frictionless material for one with friction. Other than that, all my ideas are how to fake it! (Eg: Spin only the art, don’t actually spin the rigidbody until you want the spin to affect physics.)
Woah! It actually DOES work! It rotates and when it hits the friction part of the lane it reacts like real bowling! That’s kinda freaky at the same time of being awesome… Can’t explain why it’s freaky, I guess the physics are rather life-like.