#include <aiCharacter.h>
Public Member Functions | |
void | update () |
void | set_velocity (LVecBase3f vel) |
void | set_char_render (NodePath render) |
NodePath | get_char_render () |
void | set_mass (double m) |
LVecBase3f | get_velocity () |
double | get_max_force () |
void | set_max_force (double max_force) |
NodePath | get_node_path () |
void | set_node_path (NodePath np) |
AIBehaviors * | get_ai_behaviors () |
void | set_pf_guide (bool pf_guide) |
AICharacter (string model_name, NodePath model_np, double mass, double movt_force, double max_force) | |
~AICharacter () | |
Public Attributes | |
double | _mass |
double | _max_force |
LVecBase3f | _velocity |
LVecBase3f | _steering_force |
string | _name |
double | _movt_force |
unsigned int | _ai_char_flock_id |
AIWorld * | _world |
AIBehaviors * | _steering |
NodePath | _window_render |
NodePath | _ai_char_np |
bool | _pf_guide |
PUBLISHED | __pad0__: double get_mass() |
Definition at line 38 of file aiCharacter.h.
AICharacter::AICharacter | ( | string | model_name, | |
NodePath | model_np, | |||
double | mass, | |||
double | movt_force, | |||
double | max_force | |||
) |
Filename : aiCharacter.cxx Created by : Deepak, John, Navin Date : 8 Sep 09
PANDA3D SOFTWARE Copyright(c) Carnegie Mellon University. All rights reserved.
All use of this software is subjest to the terms of the revised BSD license. You should have received a copy of this license along with this source code in a file named "LICENSE"
Definition at line 17 of file aiCharacter.cxx.
AICharacter::~AICharacter | ( | ) |
Definition at line 34 of file aiCharacter.cxx.
AIBehaviors * AICharacter::get_ai_behaviors | ( | ) |
NodePath AICharacter::get_char_render | ( | ) |
double AICharacter::get_max_force | ( | ) |
NodePath AICharacter::get_node_path | ( | ) |
LVecBase3f AICharacter::get_velocity | ( | ) |
void AICharacter::set_char_render | ( | NodePath | render | ) |
Definition at line 118 of file aiCharacter.cxx.
void AICharacter::set_mass | ( | double | m | ) |
Definition at line 94 of file aiCharacter.cxx.
void AICharacter::set_max_force | ( | double | max_force | ) |
Definition at line 102 of file aiCharacter.cxx.
void AICharacter::set_node_path | ( | NodePath | np | ) |
Definition at line 110 of file aiCharacter.cxx.
void AICharacter::set_pf_guide | ( | bool | pf_guide | ) |
Definition at line 126 of file aiCharacter.cxx.
void AICharacter::set_velocity | ( | LVecBase3f | vel | ) |
Definition at line 86 of file aiCharacter.cxx.
void AICharacter::update | ( | ) |
Function : update Description : 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 46 of file aiCharacter.cxx.
PUBLISHED AICharacter::__pad0__ |
Definition at line 59 of file aiCharacter.h.
unsigned int AICharacter::_ai_char_flock_id |
Definition at line 46 of file aiCharacter.h.
NodePath AICharacter::_ai_char_np |
Definition at line 50 of file aiCharacter.h.
double AICharacter::_mass |
Definition at line 40 of file aiCharacter.h.
double AICharacter::_max_force |
Definition at line 41 of file aiCharacter.h.
double AICharacter::_movt_force |
Definition at line 45 of file aiCharacter.h.
string AICharacter::_name |
Definition at line 44 of file aiCharacter.h.
Definition at line 51 of file aiCharacter.h.
Definition at line 48 of file aiCharacter.h.
LVecBase3f AICharacter::_steering_force |
Definition at line 43 of file aiCharacter.h.
LVecBase3f AICharacter::_velocity |
Definition at line 42 of file aiCharacter.h.
NodePath AICharacter::_window_render |
Definition at line 49 of file aiCharacter.h.
Definition at line 47 of file aiCharacter.h.