Summary

public IMyEntity GetIntersectionWithSphere(ref BoundingSphereD sphere)

Returns first found (not closest) entity that intersects with sphere

Returns

IMyEntity

First found entity

Parameters

Summary

public IMyEntity GetIntersectionWithSphere(ref BoundingSphereD sphere, IMyEntity ignoreEntity0, IMyEntity ignoreEntity1)

Returns first found (not closest) entity that intersects with sphere

Returns

IMyEntity

First found entity, or null

Parameters

Summary

public IMyEntity GetIntersectionWithSphere(ref BoundingSphereD sphere, IMyEntity ignoreEntity0, IMyEntity ignoreEntity1, bool ignoreVoxelMaps, bool volumetricTest, bool excludeEntitiesWithDisabledPhysics, bool ignoreFloatingObjects, bool ignoreHandWeapons)

Returns first found (not closest) entity that intersects with sphere

Returns

IMyEntity

Found entity matching conditions

Parameters

Summary

public List<IMyEntity> GetIntersectionWithSphere(ref BoundingSphereD sphere, IMyEntity ignoreEntity0, IMyEntity ignoreEntity1, bool ignoreVoxelMaps, bool volumetricTest)

Returns list of entities that intersects with sphere

Returns

List

List of entities inside of sphere

Parameters

Remarks

Returned list may be used by system, next call if this or other similar function will clear list, so if you need to store data for long time, copy data from it. Also clean list, after you don't need it anymore