MovementBehavior
Defines how a citizen moves — idle or wandering — and the parameters that control that movement.
package com.electro.hycitizens.models;
Constructors
MovementBehavior()
MovementBehavior(@Nonnull String type, float walkSpeed,
float wanderRadius, float wanderWidth, float wanderDepth)
getType / setType
@Nonnull String getType()
void setType(@Nonnull String type)
| Value | Behavior |
|---|---|
"IDLE" | Citizen stands still (default) |
"WANDER" | Citizen walks around randomly within wander bounds |
getWalkSpeed / setWalkSpeed
float getWalkSpeed()
void setWalkSpeed(float walkSpeed)
Movement speed. Default: 10.0.
getWanderRadius / setWanderRadius
float getWanderRadius()
void setWanderRadius(float radius)
Radius of random wander circle. Used with WANDER type. Default: 10.0.
getWanderWidth / setWanderWidth
float getWanderWidth()
void setWanderWidth(float width)
Width of wander area. Default: 10.0.
getWanderDepth / setWanderDepth
float getWanderDepth()
void setWanderDepth(float depth)
Depth of wander area. Default: 10.0.