public Boat(Vector3 nLoc) { nLoc += new Vector3(.5f, 0, .5f); setupAnimatedBodyPartGroup(ContentDistributor.getEmptyString() + @"boats\onePersonBoat.chr", SCALE); nLoc.Y = permanentYLocation; physics = new PhysicsHandler(new AxisAlignedBoundingBox(new Vector3(-1, 0, -1) + nLoc, new Vector3(1f, .1f, 1f) + nLoc)); faction = Faction.neutral; }
public Character(AxisAlignedBoundingBox nAABB, Faction nFaction) { load = new CharacterLoad(); job = new UnemployedJob(); physics = new PhysicsHandler(nAABB); faction = nFaction; if (faction == Faction.friendly) { bodyType = BodyType.Minotuar; switchBodies(ContentDistributor.getEmptyString() + "minotuar.chr"); } else { bodyType = BodyType.Ghoul; switchBodies(ContentDistributor.getEmptyString() + @"ghoul\ghoul.chr"); walkSpeedWhilePathing *= .9f; } }