Class SightLineData
Class that wraps the huge amount of data that can be retrieved from SightLine Process
Inherited Members
Namespace: Slipe.Client.SightLines
Assembly: SlipeClient.dll
Syntax
public class SightLineData
Constructors
| Improve this Doc View SourceSightLineData(Tuple<Boolean, Single, Single, Single, MtaElement, Single, Single, Tuple<Single, Int32, Single, Int32, Nullable<Int32>, Single, Single, Tuple<Single, Single, Single, Single, Int32>>>)
Create a data instance from the raw ProcessLineOfSight output
Declaration
public SightLineData(Tuple<bool, float, float, float, MtaElement, float, float, Tuple<float, int, float, int, int?, float, float, Tuple<float, float, float, float, int>>> d)
Parameters
Type | Name | Description |
---|---|---|
Tuple<Boolean, Single, Single, Single, Slipe.MtaDefinitions.MtaElement, Single, Single, Tuple<Single, Int32, Single, Int32, Nullable<Int32>, Single, Single, Tuple<Single, Single, Single, Single, Int32>>> | d |
Properties
| Improve this Doc View SourceBodyPart
For a ped/player, piece represents the body part hit:
Declaration
public BodyPart BodyPart { get; }
Property Value
Type | Description |
---|---|
BodyPart |
CollisionPosition
The colliision position
Declaration
public Vector3 CollisionPosition { get; }
Property Value
Type | Description |
---|---|
Vector3 |
DidHit
true if there is a collision, false otherwise
Declaration
public bool DidHit { get; }
Property Value
Type | Description |
---|---|
Boolean |
HitElement
the MTA element hit if any, null otherwise
Declaration
public PhysicalElement HitElement { get; }
Property Value
Type | Description |
---|---|
PhysicalElement |
Lighting
A float between 0 (fully dark) and 1 (bright) representing the amount of light that the hit building surface will transfer to peds or vehicles that are in contact with it. The value can be affected by the game time of day, usually with a lower (darker) value being returned during the night.
Declaration
public float Lighting { get; }
Property Value
Type | Description |
---|---|
Single |
Normal
The normal of the surface hit
Declaration
public Vector3 Normal { get; }
Property Value
Type | Description |
---|---|
Vector3 |
SurfaceMaterial
GTASA material of the surface hit when applicable (world, objects)
Declaration
public SurfaceMaterialType SurfaceMaterial { get; }
Property Value
Type | Description |
---|---|
SurfaceMaterialType |
VehiclePart
For vehicles, piece represents the vehicle part hit:
Declaration
public Part VehiclePart { get; }
Property Value
Type | Description |
---|---|
Part |
WorldLODModelID
If worldModelID is set, this will contain the LOD model ID if applicable.
Declaration
public int WorldLODModelID { get; }
Property Value
Type | Description |
---|---|
Int32 |
WorldModelID
If IncludeWorldModelInformation was set to true and a world model was hit, this will contain the model ID.
Declaration
public int WorldModelID { get; }
Property Value
Type | Description |
---|---|
Int32 |
WorldModelMatrix
A matrix of the position and rotation of the world model
Declaration
public Matrix4x4 WorldModelMatrix { get; }
Property Value
Type | Description |
---|---|
Matrix4x4 |