Show / Hide Table of Contents

Class SightLineData

Class that wraps the huge amount of data that can be retrieved from SightLine Process

Inheritance
Object
SightLineData
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Slipe.Client.SightLines
Assembly: SlipeClient.dll
Syntax
public class SightLineData

Constructors

| Improve this Doc View Source

SightLineData(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 Source

BodyPart

For a ped/player, piece represents the body part hit:

Declaration
public BodyPart BodyPart { get; }
Property Value
Type Description
BodyPart
| Improve this Doc View Source

CollisionPosition

The colliision position

Declaration
public Vector3 CollisionPosition { get; }
Property Value
Type Description
Vector3
| Improve this Doc View Source

DidHit

true if there is a collision, false otherwise

Declaration
public bool DidHit { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

HitElement

the MTA element hit if any, null otherwise

Declaration
public PhysicalElement HitElement { get; }
Property Value
Type Description
PhysicalElement
| Improve this Doc View Source

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
| Improve this Doc View Source

Normal

The normal of the surface hit

Declaration
public Vector3 Normal { get; }
Property Value
Type Description
Vector3
| Improve this Doc View Source

SurfaceMaterial

GTASA material of the surface hit when applicable (world, objects)

Declaration
public SurfaceMaterialType SurfaceMaterial { get; }
Property Value
Type Description
SurfaceMaterialType
| Improve this Doc View Source

VehiclePart

For vehicles, piece represents the vehicle part hit:

Declaration
public Part VehiclePart { get; }
Property Value
Type Description
Part
| Improve this Doc View Source

WorldLODModelID

If worldModelID is set, this will contain the LOD model ID if applicable.

Declaration
public int WorldLODModelID { get; }
Property Value
Type Description
Int32
| Improve this Doc View Source

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
| Improve this Doc View Source

WorldModelMatrix

A matrix of the position and rotation of the world model

Declaration
public Matrix4x4 WorldModelMatrix { get; }
Property Value
Type Description
Matrix4x4
  • Improve this Doc
  • View Source
Back to top Generated by DocFX