Interface IProximity
Defines an object that can test points to see if they're contained in the proximity.
public interface IProximity : IShapeVolume, ICloneable
- Inherited Members
-
IShapeVolume.containsPoint(Vector3)IShapeVolume.worldBoundsIShapeVolume.internalVolumeIShapeVolume.surfaceArea
- Extension Methods
Remarks
Also implements SDG.Framework.Utilities.IShapeVolume. Any components implementing this interface should destroy themselves in Dispose().
Properties
Area
The 2D area of the shape when looking down.
float Area { get; }
Property Value
Methods
TestPoint(in Vector2)
Check if a position is within the proximity while ignoring Y position.
bool TestPoint(in Vector2 position)
Parameters
positionVector2
Returns
TestPoint(in Vector3)
Check if a position is within the proximity.
bool TestPoint(in Vector3 position)
Parameters
positionVector3