-
Looping Vehicle Animation
I've been wondering how to do this looping animation for a while now, and I'm having a bit of a problem with it. For some reason when I loop the x,y,z positions that targets the vehicle to the dummy block, the vehicle seems to move out of place from the original position whenever it repeats. I've been trying to do some other data sources to prevent it but I can't figure them how to use them properly. This has been halting me for a while now. If I can get some help or tip, that would be a lot of help. Thanks!
-
Senior Member
Re: Looping Vehicle Animation
Really wierd things can happen if you pull the x,y, and z cordinates of your curve data sources directly from the object that you are trying to animate. In this case, it seems like you pulled the starting point directly from your vehicle. Problem is this, as the car moves, the starting point of your curve data source is constantly changing.
Try making a copy of your vehicle, moving it to where you wanna start your animation and then turning it invisible. Then you can use the cordinates of the invisible car as your starting point of your animation.
-
Re: Looping Vehicle Animation
It sounds like you're having the same issue I had with the in game example car that moves in a circle.
I wanted the car to keep going in a circle rather than stop, so I checked the looping box for the X axis thinking the car would just move round and round, but it didn't. At the end of the first rotation the car jumped backwards some distance and then repeated.
This is because when the X axis number got to 100, it starts again at 0, so the car jumps backwards 100 meters, and starts again.
To get around this, you need to have your Angular data sources on looping, but Positional data sources need to go on indefinitely.
So, instead of using a curve data source, use a variable data source and target it with a Set Value Event set to increase it by 1, then pass on the impulse from the Object Position Event to the Set Value Event, and you should be done.
-
Re: Looping Vehicle Animation
@jook 13 Thanks man I seem to have it now since I replaced the dummy block to a vehicle instead; now it works perfectly since it stays in a constant destination, thanks!
@JaminBen007 I didn't mean that I wanted the car to go in a complete circle if you mean it like that. I wanted the car to go in a repeating straight line with out the animation going out of place. Sorry if my explanation had you confused.
-
Re: Looping Vehicle Animation
No apology necessary, sorry I misunderstood. Glad you got it sorted.