29class EXPCL_PANDAAI AICharacter :
public ReferenceCount {
34 LVecBase3 _steering_force;
37 unsigned int _ai_char_flock_id;
45 void set_velocity(LVecBase3 vel);
46 void set_char_render(
NodePath render);
49 std::string get_name();
53 void set_mass(
double m);
55 LVecBase3 get_velocity();
57 double get_max_force();
58 void set_max_force(
double max_force);
66 void set_pf_guide(
bool pf_guide);
68 explicit AICharacter(std::string model_name,
NodePath model_np,
double mass,
double movt_force,
double max_force);
71 MAKE_PROPERTY(name, get_name);
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This class implements all the steering behaviors of the AI framework, such as seek,...
void update()
Each character's update will update its AI and physics based on his resultant steering force.
A class that implements the virtual AI world which keeps track of the AI characters active at any giv...
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.