Search the Community
Showing results for tags 'vectors'.
Found 4 results
I spent around 4 hours scratching my head and still can't figure this out! If you throw an object in front of you and then move left or right, how can you tell which side you are on? I'm using BabylonJS so it would be super helpful if you could limit the methods used to that library. Otherwise, a clear mathematical question would suffice. Thank you so much!
Check this piece of code I've written in VS: Basically, what I'm trying to accomplish is when the user presses a key (W or S or A or D) the cube that is on the scene smoothly changes its position from its original position (like an animation) to the movementMatrix which is the 2-dimensional array containing the predefined positions for the Cube. Below is the movementMatrix . Of course it does not produce the result I want, mainly because I don't know how this Vector-lerping stuff works So if someone explained how to fix it it would be great!