setAgentPosition() public method

Sets the two-dimensional position of a specified agent. *
public setAgentPosition ( int agentNo, Vector2 position ) : void
agentNo int The number of the agent whose two-dimensional * position is to be modified.
position Vector2 The replacement of the two-dimensional * position.
return void
示例#1
0
 public void SetAgentPosition(int _id, Vector3 _pos)
 {
     m_instance.setAgentPosition(_id, new RVO.Vector2(Vector3.Dot(_pos, m_side), Vector3.Dot(_pos, m_fwd)));
 }