[Resolved] Entity move formula
I'm really not good with vector formulas, and I'm trying to figure out how to move an entity around similar to how EntMod moves entities.
I know how to make the entity move in straight lines, but getting it to follow the angle I'm looking while moving my player around is what gets me. Here is the code I came closest to working but is still way off: PHP Code:
|
Re: Entity move formula
You could have a look at this plugin : http://djeyl.net/forum/index.php?showtopic=50982
|
Re: Entity move formula
Thanks a lot, connorr :)
I was able to get the formula from that plugin. I converted it to use floats instead of integers so it's more accurate. Here it is if anyone else wants it: PHP Code:
|
| All times are GMT -4. The time now is 11:13. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.