Home Game Development c# – Unity high down character motion animation sideway

c# – Unity high down character motion animation sideway

0
c# – Unity high down character motion animation sideway

[ad_1]

I’m hardly combating the animation dealing with for my high down character motion.

the sport is a 3D high down sport, the character is all the time going through to mouse and that i received animations for transferring ahead sideward and backward.

the concept is to determine the course so the proper transferring animation will be performed. the massive downside is it must be relative to the charakters view course.

im struggling how to decide on the proper motion animation.

i attempted various things and the best concept i had was to make use of this

movementDir = Transform.place - oldPosition

and a vector for the course the charakter is wanting.

however the movementDir is switching between the proper worth and 0,0,0 and that i cant discover why.

the charakter is transferring with fixed pace and the precise place ought to all the time be completely different whereas transferring however someway it’s like in some frames the charakter is on the identical place then the body earlier than.

i’ve tried to discover a resolution for this on google however i didnt discover something like this.

[ad_2]

LEAVE A REPLY

Please enter your comment!
Please enter your name here