Posted January 23, 201510 yr hello, I want to simulate key press on "w". I tried to use "setVelocity" but for some reason the entity stops a few seconds after, something like negative accelartion. I tried to loop the setVelocity but the result was inconstant speed. Any ideas?
January 26, 201510 yr Author Hello, thanks for the reply. I tried to use these properties but for some reason when I changed them I didn't see any difference.
January 26, 201510 yr Author Then you have to use vector maths to calculate the values for motionX and motionZ that are needed to make your Entity walk in the direction you want. the question is - how do walk stright in that direction and in contstant speed?, setVelocity with direction vector is giving me the walk to the requierd direction, but isn't giving me the constant speed. I tried to modify moveStrafing and moveForward as you said but nothing happend...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.