How to create a rotating floor upon player collision with object?
I've completed the roll a ball tutorial, and I want to take what I've learned from the tutorial and expand the game and have some ideas. However, I have no idea where to begin to implement these ideas.
I would like to have the floor tilt slightly each time the "Player" object comes into contact with the "Pick Up" object, making the game more difficult.
So, I think what I need to do; would be to create a C# script that says something like: If GameObject (Player) Collides with GameObject (Pick Up)
Then GameObject (Floor) Tilts on the X axis by so many digits.
So I guess my first questions are: What would be the keywords I would need to accomplish this task? Do I need any Variables to accomplish said task? Any good tutorials or tips on coding?
I learn best by doing, and learn little by just reading or watching a video; so I would prefer to not just be handed the code. I just need a push in the right direction.
Thanks!
Your answer
![](https://koobas.hobune.stream/wayback/20220612091829im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Rotating the player with mousePosition problem. 0 Answers
GameObjects 0 Answers
How do I properly add a light to a 3d model character? 1 Answer
Auto level an object 0 Answers
After Rotating a Prefab, Transform.Position of children is inaccurate 1 Answer