wecs.panda3d.ai module

class wecs.panda3d.ai.ConstantCharacterAI(move: panda3d.core.LVector3f = <factory>, heading: float = 0.0, pitch: float = 0.0, sprints: bool = False, crouches: bool = False, jumps: bool = False)

Bases: object

Keeps moving in the same direction.

Parameters:
  • move (Vec3) – (0, 0, 0) - relative directional movement speed
  • heading (float) – 0.0 - heading
  • pitch (float) – 0.0 - pitch
  • sprints (bool) – False - is sprinting
  • crouches (bool) – False - is crouching
  • jumps (bool) – False - starts jumping
heading = 0.0
pitch = 0.0
sprints = False
crouches = False
jumps = False
class wecs.panda3d.ai.BrownianWalkerAI(move: panda3d.core.LVector3f = <factory>, heading: float = 1.0)

Bases: object

Moves randomly.

Parameters:
  • move (Vec3) – (0, 0, 0) - relative directional movement speed
  • heading (float) – 0.0 - heading
  • heading_jitter (float) – 0.0 - amount heading is randomized each update
heading = 1.0
heading_jitter = 0.1
class wecs.panda3d.ai.Think(throw_exc=False)

Bases: wecs.core.System

A System updating AI components.

entity_filters = {'brownian_walker': <wecs.core.AndFilter object>, 'constant': <wecs.core.AndFilter object>}
update(entities_by_filter)