cassius Posted August 12, 2011 Share Posted August 12, 2011 Hi. What is the best way to make a character move in whatever direction it is facing.? I use pointentity to make enemies face player character but sometimes require them to move towards player. Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++ Link to comment Share on other sites More sharing options...
Canardia Posted August 12, 2011 Share Posted August 12, 2011 You just put camera.rotation.Y as the first parameter to UpdateController(). If you don't use controllers for the enemies, then you can do a simple MoveEntity(enemy,0,0,1), or if it's a physics enemy, then you do AddForce(enemy,0,0,10). Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
cassius Posted August 12, 2011 Author Share Posted August 12, 2011 Thanks for help. Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++ Link to comment Share on other sites More sharing options...
Recommended Posts
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.