예제 #1
0
        public int AddAgent(DetourAgent agent, CrowdAgentParams ap)
        {
            Assert.IsTrue(_crowd.Handle.ToInt64() != 0);

            int idx = addAgent(_crowd.Handle, agent.transform.position.ToFloat(), ref ap);

            if (idx != -1)
            {
                agents.Add(agent);
            }

            return(idx);
        }
예제 #2
0
 public static extern void updateAgent(IntPtr crowd, int idx, ref CrowdAgentParams ap);
예제 #3
0
        public void UpdateAgentParemeters(int idx, CrowdAgentParams ap)
        {
            Assert.IsTrue(_crowd.Handle.ToInt64() != 0);

            updateAgent(_crowd.Handle, idx, ref ap);
        }
예제 #4
0
 public static extern int addAgent(IntPtr crowd, float[] p, ref CrowdAgentParams ap);
예제 #5
0
 public static extern void updateAgent(IntPtr crowd, int idx, ref CrowdAgentParams ap);
예제 #6
0
        public void UpdateAgentParemeters(int idx, CrowdAgentParams ap)
        {
            Assert.IsTrue(_crowd.Handle.ToInt64() != 0);

            updateAgent(_crowd.Handle, idx, ref ap);
        }
예제 #7
0
        public int AddAgent(DetourAgent agent, CrowdAgentParams ap)
        {
            Assert.IsTrue(_crowd.Handle.ToInt64() != 0);

            int idx = addAgent(_crowd.Handle, agent.transform.position.ToFloat(), ref ap);
            if (idx != -1)
            {
                agents.Add(agent);
            }

            return idx;
        }
예제 #8
0
 public static extern int addAgent(IntPtr crowd, float[] p, ref CrowdAgentParams ap);