Esempio n. 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);
        }
Esempio n. 2
0
 public static extern void updateAgent(IntPtr crowd, int idx, ref CrowdAgentParams ap);
Esempio n. 3
0
        public void UpdateAgentParemeters(int idx, CrowdAgentParams ap)
        {
            Assert.IsTrue(_crowd.Handle.ToInt64() != 0);

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

            updateAgent(_crowd.Handle, idx, ref ap);
        }
Esempio n. 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;
        }
Esempio n. 8
0
 public static extern int addAgent(IntPtr crowd, float[] p, ref CrowdAgentParams ap);