EffectiveEntityLookable

Behaviour that makes custom entities rotate to face nearby targets as those targets move. Register via EffectiveEntity.doEntityNearLookable.

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class Data(val entity: Entity, val whoToLook: (Entity) -> Boolean = Look.TO_NEAR_PLAYER, val lookDistance: Float = 5.0f)

Look configuration for one entity.

Link copied to clipboard

Ready-made look predicates.