|
VR-Engage
2.2
|
DtVreHumanCrosswalkController models the behavior of human entities when approaching and crossing at crosswalks. It manages the human's awareness of traffic, decision-making for when to cross safely, and interactions with traffic signals. The controller modifies the entity's movement based on environmental conditions and perceived safety.
Uses Descriptor Type: DtVreHumanCrosswalkControllerDescriptor
#include <vreHumanCrosswalkController.h>
Public Member Functions | |
| DtVreHumanCrosswalkController (const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0) | |
| virtual | ~DtVreHumanCrosswalkController () override |
| virtual const char * | type () const override |
| virtual void | tick () override |
Public Member Functions inherited from makVre::DtVreSimComponent< DtHumanCrosswalkController > | |
| DtVreSimComponent (const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0) | |
| virtual | ~DtVreSimComponent () |
| bool | isPlayerControlled (const std::string &role="") const |
| DtString | entitySystemName () const |
Static Public Member Functions | |
| static DtSimComponent * | creator (const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0) |
Private Member Functions | |
| DtVreHumanCrosswalkController () | |
| DtVreHumanCrosswalkController (const DtVreHumanCrosswalkController &orig) | |
| DtVreHumanCrosswalkController & | operator= (const DtVreHumanCrosswalkController &orig) |
|
private |
Default constructor (not implemented)
Default constructor is private and not implemented to prevent creation of instances without proper initialization.
Referenced by DtVreHumanCrosswalkController(), and operator=().
|
private |
Copy constructor (not implemented)
Copy constructor is private and not implemented to prevent copy construction.
References DtVreHumanCrosswalkController().
| makVre::DtVreHumanCrosswalkController::DtVreHumanCrosswalkController | ( | const DtString & | name, |
| DtLocalObject * | owner, | ||
| DtSimulationServices * | simManager, | ||
| DtComponentDescriptor * | desc = 0, | ||
| DtReaderWriterRegistry * | parentRegistry = 0 ) |
Constructor.
| name | The name of this component |
| owner | The local object that owns this component |
| simManager | The simulation services manager |
| desc | Component descriptor with configuration parameters |
| parentRegistry | Optional parent registry for reader/writer functionality |
Creates a new human crosswalk controller component with the specified parameters.
|
overridevirtual |
Virtual destructor.
Cleans up resources used by the human crosswalk controller component.
|
private |
Assignment operator (not implemented)
Assignment operator is private and not implemented to prevent assignment.
References DtVreHumanCrosswalkController().
|
overridevirtual |
Gets the type identifier for this component.
Implements the DtSimComponent::type() method to return the type identifier for this component.
|
overridevirtual |
Updates the controller state each simulation frame.
Processes the human entity's crosswalk behavior during each simulation frame. This includes detecting nearby crosswalks, checking for approaching vehicles, and making decisions about when to cross safely. The controller adjusts the entity's movement based on these assessments.
|
static |
Factory method to create a new instance of this component.
| name | The name for the new component |
| owner | The local object that will own this component |
| simManager | The simulation services manager |
| desc | Optional component descriptor |
| parentRegistry | Optional parent registry for reader/writer functionality |
Static factory method used by the component creation system to instantiate new instances of this component type.