ProximitySensorDsl

io.github.srs.model.entity.dynamicentity.sensor.dsl.ProximitySensorDsl

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

Creates a new ProximitySensor with default properties.

Creates a new ProximitySensor with default properties.

Attributes

Extensions

Extensions

extension (sensor: ProximitySensor[DynamicEntity, Environment])

Validates the properties of a sensor.

Validates the properties of a sensor.

Attributes

Sets the offset orientation of the sensor relative to the entity's orientation.

Sets the offset orientation of the sensor relative to the entity's orientation.

Value parameters

offset

the orientation offset of the sensor.

Attributes

Returns

a new ProximitySensor instance with the updated offset.

infix def withRange(range: Double): ProximitySensor[DynamicEntity, Environment]

Sets the range of the proximity sensor.

Sets the range of the proximity sensor.

Value parameters

range

the range of the sensor.

Attributes

Returns

a new ProximitySensor instance with the updated range.