RangeSensor
Detects objects overlapping a volume. Subclass of Sensor
.
Properties
Shape
Can be one of Sphere
, Box
or Capsule
, or 2D analogues for 2D version of the sensor. The shape of the detection volume.
Sphere
Configuration parameters for the Sphere
shape.
Box
Configuration parameters for the Box
shape.
Capsule
Configuration parameters for the Capsule
shape.
DetectsOnLayers
A layer mask specifying which physics layers objects will be detected on.
DetectionMode
Colliders
- sensor will detect theCollider.gameObject
.RigidBodies
- sensor will detect theCollider.attachedRigidBody.gameObject
.
Filter
Configuration for filters including Ignore List and Tag Filter.
IgnoreTriggerColliders
The sensor will not detect trigger colliders when this is set to true.
PulseMode
One of EachFrame
, FixedInterval
or Manual
.
PulseInterval
If PulseMode
is set to FixedInterval
, this is the time in seconds between each pulse.