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

A struct that stores the desired velocity and force 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...
 
LayerIndex layerID
 The ID of the layer on which the character is located. More...
 
double vx
 The X coordinate of the character's intended velocity. More...
 
double vy
 The Y coordinate of the character's intended velocity. More...
 
double fx
 The X component of the force vector that the character experiences according to this engine. The external application can decide what to do with it. More...
 
double fy
 The Y component of the force vector that the character experiences according to this engine. The external application can decide what to do with it. More...
 
CharacterMovingState movingState
 Indicates whether the Character is moving or reached its goal. More...
 

Detailed Description

A struct that stores the desired velocity and force 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 compute their velocities in the DLL, but whose positions are updated by an external application.

Member Data Documentation

◆ fx

double CharacterStepData_Velocity::fx

The X component of the force vector that the character experiences according to this engine. The external application can decide what to do with it.

◆ fy

double CharacterStepData_Velocity::fy

The Y component of the force vector that the character experiences according to this engine. The external application can decide what to do with it.

◆ id

int CharacterStepData_Velocity::id

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

◆ layerID

LayerIndex CharacterStepData_Velocity::layerID

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

◆ movingState

CharacterMovingState CharacterStepData_Velocity::movingState

Indicates whether the Character is moving or reached its goal.

◆ vx

double CharacterStepData_Velocity::vx

The X coordinate of the character's intended velocity.

◆ vy

double CharacterStepData_Velocity::vy

The Y coordinate of the character's intended velocity.


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