Assembly: Sandbox.Common.dll

public struct MyDetectedEntityInfo

Describes detected entity info

Fields

Member Description
BoundingBox The entity's world-aligned bounding box
EntityId The entity's EntityId
HitPosition Position where the raycast hit the entity. (can be null if the sensor didn't use a raycast)
Name The entity's display name if it is friendly, or a generic descriptor if it is not
Orientation The entity's absolute orientation at the time it was detected
Relationship Relationship between the entity and the owner of the sensor
TimeStamp Time when the entity was detected. This field counts milliseconds, compensated for simspeed
Type Enum describing the type of entity
Velocity The entity's absolute velocity at the time it was detected

Properties

Member Description
Position The entity's position (center of the Bounding Box)

Constructors

Member Description
MyDetectedEntityInfo(long, string, MyDetectedEntityType, Vector3D?, MatrixD, Vector3, MyRelationsBetweenPlayerAndBlock, BoundingBoxD, long)

Methods

Member Description
IsEmpty() Determines if this structure is empty; meaning it does not contain any meaningful data