Tag Info

Hot answers tagged

2

What you need is a stack based state machine. Essentially store the last state that was set, when transition. That way when your state ends, you just pop the last state. Walk Jump -> stack.push(Walk) Land -> stack.pop(Walk) Walk Now, you probably will have to make this work with your keyboard input as well. So you need a way to clear the stack before ...


1

Back-of-the-Napkin approach: Need a larger sample size and longer time series than you probably would suspect intuitively. K.I.S.S.: How quickly do the winners and losers "revert to the mean?" If the mean "reversion/regression" is slow then skill plays a larger roll. If mean "reversion/regression" is fast then luck plays a more significant role in the ...


1

I don't fully understand your question. But, if you want to move something forward, what I would do is something like: this.transform.position += this.transform.forward * moveSpeed; Whereas, moveSpeed is the speed at which you want your unit to go forward. To go in the opposite direction that you are facing: this.transform.position -= ...



Only top voted, non community-wiki answers of a minimum length are eligible