This repository has been archived by the owner on Oct 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 123
Sandbox.ModAPI.Ingame.MyDetectedEntityInfo
Morten Aune Lyrstad edited this page Apr 16, 2022
·
44 revisions
← Index ← Namespace Index
public struct MyDetectedEntityInfo
Namespace: Sandbox.ModAPI.Ingame
Assembly: Sandbox.Common.dll
Member | Description |
---|---|
BoundingBoxD BoundingBox | The entity's world-aligned bounding box |
long EntityId | The entity's EntityId |
Vector3D? HitPosition | Position where the raycast hit the entity. (can be null if the sensor didn't use a raycast) |
string Name | The entity's display name if it is friendly, or a generic descriptor if it is not |
MatrixD Orientation | The entity's absolute orientation at the time it was detected |
MyRelationsBetweenPlayerAndBlock Relationship | Relationship between the entity and the owner of the sensor |
long TimeStamp | Time when the entity was detected. This field counts milliseconds, compensated for simspeed |
MyDetectedEntityType Type | Enum describing the type of entity |
Vector3 Velocity | The entity's absolute velocity at the time it was detected |
Member | Description |
---|---|
Vector3D Position { get; } | The entity's position (center of the Bounding Box) |
Member | Description |
---|---|
MyDetectedEntityInfo(long, string, MyDetectedEntityType, Vector3D?, MatrixD, Vector3, MyRelationsBetweenPlayerAndBlock, BoundingBoxD, long) |
Member | Description |
---|---|
bool IsEmpty() | Determines if this structure is empty; meaning it does not contain any meaningful data |
Do you have questions, comments, suggestions for improvements? Is there something I can do better? Did I make a mistake? Please add an issue here, and prefix your issue title with Wiki. Thank you, your help will be very appreciated!