Agrarsense
Public Member Functions | Public Attributes | List of all members
CollisionData Struct Reference

#include <CollisionSensor.h>

Public Member Functions

FString ToString ()
 
FString ToStringHumanReadable ()
 

Public Attributes

FString Actor
 
FString OtherActor
 
FVector NormalImpulse
 

Detailed Description

Definition at line 15 of file CollisionSensor.h.

Member Function Documentation

◆ ToString()

FString CollisionData::ToString ( )
inline

Definition at line 21 of file CollisionSensor.h.

22 {
23 FString X = FString::SanitizeFloat(NormalImpulse.X);
24 FString Y = FString::SanitizeFloat(NormalImpulse.Y);
25 FString Z = FString::SanitizeFloat(NormalImpulse.Z);
26 return FString::Printf(TEXT("%s, %s, %s, %s, %s"), *Actor, *OtherActor, *X, *Y, *Z);
27 }
FString OtherActor
FVector NormalImpulse

References Actor, NormalImpulse, and OtherActor.

Referenced by ACollisionSensor::OnCollisionEvent().

◆ ToStringHumanReadable()

FString CollisionData::ToStringHumanReadable ( )
inline

Definition at line 29 of file CollisionSensor.h.

30 {
31 return FString::Printf(TEXT("Actor %s collided with %s with impulse of %s"), *Actor, *OtherActor, *NormalImpulse.ToString());
32 }

References Actor, NormalImpulse, and OtherActor.

Referenced by ACollisionSensor::OnCollisionEvent().

Member Data Documentation

◆ Actor

FString CollisionData::Actor

Definition at line 17 of file CollisionSensor.h.

Referenced by ToString(), and ToStringHumanReadable().

◆ NormalImpulse

FVector CollisionData::NormalImpulse

Definition at line 19 of file CollisionSensor.h.

Referenced by ToString(), and ToStringHumanReadable().

◆ OtherActor

FString CollisionData::OtherActor

Definition at line 18 of file CollisionSensor.h.

Referenced by ToString(), and ToStringHumanReadable().


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