Skip to main content

Class TimeStampedCollision

An immutable snapshot of a single collision event, timestamped to the simulation clock.

[Serializable]
public class TimeStampedCollision : TimeStampedRecord

Inheritance​

Inherited Members​

TimeStampedRecord.unixTimestamp

Remarks​

Records the collided object's display name and GUID (resolved via IUniqueIdentifier) so the log entry can be correlated with other actor data logs during post-processing, even when scene object names are not unique across runs. Relative velocity and the first contact point are sufficient for the study's near-miss severity metrics.

Constructors​

TimeStampedCollision(Collision)​

Initializes a new instance of the TimeStampedCollision class.

public TimeStampedCollision(Collision collision)

Parameters​

NameTypeDescription
collisionCollisionThe collision data.

Fields​

collided_object_guid​

The GUID of the collided object.

public string collided_object_guid

Field Value​

string

collided_object_name​

The name of the collided object.

public string collided_object_name

Field Value​

string

collision_point​

The point of collision.

public VectorDataLog collision_point

Field Value​

VectorDataLog

collision_velocity​

The velocity of the collision.

public VectorDataLog collision_velocity

Field Value​

VectorDataLog

  • Remarks
  • Constructors
    • TimeStampedCollision(Collision)
  • Fields
    • collided_object_guid
    • collided_object_name
    • collision_point
    • collision_velocity