Panda3D
 All Classes Functions Variables Enumerations
Public Member Functions | Public Attributes | List of all members
AICharacter Class Reference

Public Member Functions

 AICharacter (string model_name, NodePath model_np, double mass, double movt_force, double max_force)
 
AIBehaviorsget_ai_behaviors ()
 
NodePath get_char_render ()
 
double get_mass ()
 
double get_max_force ()
 
NodePath get_node_path ()
 
LVecBase3 get_velocity ()
 
void set_char_render (NodePath render)
 
void set_mass (double m)
 
void set_max_force (double max_force)
 
void set_node_path (NodePath np)
 
void set_pf_guide (bool pf_guide)
 
void set_velocity (LVecBase3 vel)
 
void update ()
 Each character's update will update its ai and physics based on his resultant steering force. More...
 

Public Attributes

unsigned int _ai_char_flock_id
 
NodePath _ai_char_np
 
double _mass
 
double _max_force
 
double _movt_force
 
string _name
 
bool _pf_guide
 
AIBehaviors_steering
 
LVecBase3 _steering_force
 
LVecBase3 _velocity
 
NodePath _window_render
 
AIWorld_world
 

Detailed Description

Definition at line 38 of file aiCharacter.h.

Member Function Documentation

void AICharacter::update ( )

Each character's update will update its ai and physics based on his resultant steering force.

This also makes the character look at the direction of the force.

Definition at line 47 of file aiCharacter.cxx.

References AIBehaviors::calculate_prioritized(), NodePath::get_pos(), AIBehaviors::is_off(), LVecBase3f::length(), NodePath::look_at(), LVecBase3f::normalize(), and NodePath::set_pos().

Referenced by AIWorld::update().


The documentation for this class was generated from the following files: