Show / Hide Table of Contents

Interface IMyProjectileDetector

Describes projectile that have custom logic on handling bullets (mods interface)

Namespace: Sandbox.ModAPI
Assembly: Sandbox.Common.dll
Syntax
public interface IMyProjectileDetector

Properties

DetectorAABB

Gets AABB of the detector

Declaration
BoundingBoxD DetectorAABB { get; }
Property Value
Type Description
BoundingBoxD

Detector AABB in world coordinates

HitEntity

Gets entity which was hit for this detector. It's not used for any logic with data, just for reporting to projectile system, which entity was hit by the projectile.

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

Entity that projectile detector represents

IsDetectorEnabled

Gets if detector is enabled

Declaration
bool IsDetectorEnabled { get; }
Property Value
Type Description
System.Boolean

Methods

GetDetectorIntersectionWithLine(ref LineD, out Nullable<Vector3D>)

Gets intersection between line and detector

Declaration
bool GetDetectorIntersectionWithLine(ref LineD line, out Nullable<Vector3D> hit)
Parameters
Type Name Description
LineD line

Line of the bullet

System.Nullable<Vector3D> hit

World hit position

Returns
Type Description
System.Boolean

Should return true if line intersects detector

☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾