Show / Hide Table of Contents

Class MyTargetingHelper

Inheritance
System.Object
MyTargetingHelper
Namespace: Sandbox.Game.EntityComponents
Assembly: Sandbox.Game.dll
Syntax
public sealed class MyTargetingHelper : Object

Fields

m_instance

Declaration
public static MyTargetingHelper m_instance
Field Value
Type Description
MyTargetingHelper

Properties

Instance

Declaration
public static MyTargetingHelper Instance { get; }
Property Value
Type Description
MyTargetingHelper

Methods

GetLockingPosition(MyEntity)

Declaration
public Vector3D GetLockingPosition(MyEntity entity)
Parameters
Type Name Description
MyEntity entity
Returns
Type Description
Vector3D

IsVisible(MyCubeGrid, MyEntity, List<MyPhysics.HitInfo>, out MyEntity)

Declaration
public bool IsVisible(MyCubeGrid myGrid, MyEntity target, List<MyPhysics.HitInfo> hits, out MyEntity visibleBy)
Parameters
Type Name Description
MyCubeGrid myGrid
MyEntity target
System.Collections.Generic.List<Sandbox.Engine.Physics.MyPhysics.HitInfo> hits
MyEntity visibleBy
Returns
Type Description
System.Boolean

PrefetchVoxels(Vector3D, Vector3D)

Declaration
public bool PrefetchVoxels(Vector3D from, Vector3D to)
Parameters
Type Name Description
Vector3D from
Vector3D to
Returns
Type Description
System.Boolean

RaycastCheck(MyCubeBlock, MyEntity, Double, Action<MyEntity, List<MyPhysics.HitInfo>>)

Declaration
public bool RaycastCheck(MyCubeBlock myCockpit, MyEntity entity, double maxDistanceSquared, Action<MyEntity, List<MyPhysics.HitInfo>> callback)
Parameters
Type Name Description
MyCubeBlock myCockpit
MyEntity entity
System.Double maxDistanceSquared
System.Action<MyEntity, System.Collections.Generic.List<Sandbox.Engine.Physics.MyPhysics.HitInfo>> callback
Returns
Type Description
System.Boolean
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾