private void buildStaticWorld() { OBase plane = new OBase(); plane.setPrimitive(PrimitiveType.Plane); plane.build(); plane.setPosition(new Vector3(5f, 0, 5f)); plane.setScale(new Vector3(10f, 1f, 10f)); plane.redraw(); NavMeshSurface surface = plane.getBody().AddComponent(typeof(NavMeshSurface)) as NavMeshSurface; navMeshBaker.addMeshSurface(surface); navMeshBaker.bakeNavMeshSurfaces(); }
public void addAgent() { OBase agent = new OBase(); agent.setPrimitive(PrimitiveType.Capsule); agent.build(); agent.setName("agent"); agent.setType(OType.Agent); agent.setPosition(new Vector3(0, 0, 0)); agent.makeAgent(); agent.redraw(); addPlanObject("arm", "left", null); addPlanObject("arm", "right", null); }
public void addPlanObjects() { foreach (KeyValuePair <string, List <Tuple <string, string, PrimitiveType?> > > types in objTuples) { foreach (Tuple <string, string, PrimitiveType?> obj in types.Value) { string name = obj.Item2; PrimitiveType?primitive = obj.Item3; string type = types.Key; List <HSPTerm> args = new List <HSPTerm>(); args.Add(new HSPTerm(name, type, null)); OBase newObject = new OBase(); newObject.setPredicate(new HSPPredicate(type, args)); newObject.setPrimitive(primitive); newObject.setName(name); objectList.Add(name, newObject); } } }
void StObjConstruct(OBase o) { }