Show / Hide Table of Contents

Interface IHitInfo

Namespace: VRage.Game.ModAPI
Assembly: VRage.Game.dll
Syntax
public interface IHitInfo

Properties

Fraction

How much of the ray cast distance was traveled before hitting something. Use this value to multiply your initial distance to get the distance to hit position in a cheaper way.

Declaration
float Fraction { get; }
Property Value
Type Description
System.Single

HitEntity

The entity that was hit.

Declaration
IMyEntity HitEntity { get; }
Property Value
Type Description
IMyEntity

Normal

The direction vector of the hit surface.

Declaration
Vector3 Normal { get; }
Property Value
Type Description
Vector3

Position

The position where the raycast hit.

Declaration
Vector3D Position { get; }
Property Value
Type Description
Vector3D
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾