I know how to move the mob like 1 m in a direction but i dont know the direction.
The mob should face the player hes attacking but how to?
The methods from unity i cant use....
Need to write your own simple transform classes - try to look at the FPS example, which has some basic already there. Like calculating distance to another transform and so. Rotating towards another transform is easy too - requires a little math, but lots of examples out there for calculating a vector towards a point in 3d space.
I have been trying to wrap my mind about this aspect of my code for a couple days now. Getting the NPC to move is easy, but following collisions is something entirely different.
I have been trying to find information on how to actually create a collision map from Unity3D, but have had no luck. If I have the server tell the NPC to go in direction X, it will go through the ground, walls, or whatever else is in it's path.
I would also like to know how other's have done this, with Unity3d (if anyone has anyway). I know that Thomas has mentioned it, in the last paragraph, in the FPS tutorial documentation... but I can't find any information on actually doing it.
I will keep it in my mind for now, and use my current system until something better "clicks" in my mind.
Hi, Robilie. Can you post your code? I'm trying to implement movement towards another player and I'm having trouble. In unity is easy with vectors, but in java you have to implement yourself.
We made an awesome GPS - MOBA.
Try it out here: Get Fhacktions