Panda3D
|
Public Member Functions | |
AICharacter (string model_name, NodePath model_np, double mass, double movt_force, double max_force) | |
AIBehaviors * | get_ai_behaviors () |
NodePath | get_char_render () |
double | get_mass () |
double | get_max_force () |
NodePath | get_node_path () |
LVecBase3f | 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 (LVecBase3f vel) |
void | update () |
Each character's update will update its ai and physics based on his resultant steering force. | |
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 |
LVecBase3f | _steering_force |
LVecBase3f | _velocity |
NodePath | _window_render |
AIWorld * | _world |
Definition at line 38 of file aiCharacter.h.
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().