- Home /
How do I make a ball move in a cutscene without having to rotate it?
I am making a game where there are ball shaped npcs. The problem is that I have cutscenes where I want the ball characters to move around, but it is very tedious to rotate them manually while adjusting their position. I want to make a script that makes the ball rotate in the direction it is moving from the Timeline window. Is their a way I can make this happen? The only way I've gotten close is to use some AI pathfinding, and even then, that is very tedious to do as well.
Answer by vivaanbradoo1 · Sep 26, 2020 at 06:05 AM
https://m.youtube.com/watch?v=NiOGWZXBg4Y&list=PLPV2KyIb3jR4GH32npxmkXE-AHnlamcdG∈dex=52
this would help for sure. it uses a shader graph to apply force to the object directly, it has 4 parts but you can go which part you want by skipping the part you want
I'm sorry. I should've been clearer. I do want the ball to technically rotate when its moving from one point to another. I essentially want to make the ball have a script where it will rotate itself toward the direction that the timeline is telling the ball to go to. The problem with ur solution is that I don't have unity3d 2019 so I cant do that if I wanted to. Also upgrading is a no go because it broke a lot of my script functions and the cinemachine cameras that I have in the game. I would also need to figure out on which way the object should be scrolling when it is moved. What I need to do is: 1. Deter$$anonymous$$e which direction the ball is moving in the cutscene based on the movement from point a to point b. 2. Figure out on how to rotate the ball based on the direction it is moving based on the info from point 1.
i am not 100% sure if it willl work but, i think you can try parenting an empty gameobject and moving your ball according to that and object's position to the ball, sorry i am not sure
Its fine. Ill try out that suggestion of yours. Thanks
Your answer
Follow this Question
Related Questions
How to set new rotation for FPS prefab, if it turns back? 0 Answers
How to create a cutscene on a specific spot in the game environment using cinemachine and timeline? 0 Answers
Using Timeline for cutscene 1 Answer
What is the best way to start typing effect using Timeline? 1 Answer
New Timeline doesn't show frames 2 Answers