Utrecht University Crowd Simulation API
Public Attributes | List of all members
CharacterStepData_Position Struct Reference

A struct that stores the velocity and orientation of a character in the simulation at some point in time. More...

#include <UUCS.h>

Public Attributes

int id
 The ID of the character. Each simulated character has a unique ID. More...
 
double x
 The X coordinate of the character's position. More...
 
double y
 The Y coordinate of the character's position. More...
 
LayerIndex layerID
 The ID of the layer on which the character is located. More...
 
double dirx
 The X component of the character's orientation vector. More...
 
double diry
 The Y component of the character's orientation vector. More...
 
CharacterMovingState movingState
 Indicates whether the Character is moving or reached its goal. More...
 

Detailed Description

A struct that stores the velocity and orientation of a character in the simulation at some point in time.

It can be used to communicate the velocity and orientation of each character after a simulation step. This struct is meant for characters who are completely controlled from within the simulation.

Member Data Documentation

◆ dirx

double CharacterStepData_Position::dirx

The X component of the character's orientation vector.

◆ diry

double CharacterStepData_Position::diry

The Y component of the character's orientation vector.

◆ id

int CharacterStepData_Position::id

The ID of the character. Each simulated character has a unique ID.

◆ layerID

LayerIndex CharacterStepData_Position::layerID

The ID of the layer on which the character is located.

◆ movingState

CharacterMovingState CharacterStepData_Position::movingState

Indicates whether the Character is moving or reached its goal.

◆ x

double CharacterStepData_Position::x

The X coordinate of the character's position.

◆ y

double CharacterStepData_Position::y

The Y coordinate of the character's position.


The documentation for this struct was generated from the following file: