Next: , Previous: , Up: Motion   [Contents][Index]


12.14 Object Seeker

Component: ObjectSeeker

Object Seeker moves smoothly towards a target. If there is no object to follow, it will attempt to find the Player object by tag.

Field of ObjectSeeker: bool autoRetarget

Should we search for a new target if the current one is lost?

Default value: true

Auto move settings

Field of ObjectSeeker: bool instant

If true, follow speed is ignored and we’re always at the target position

Default value: false

Field of ObjectSeeker: Vector3 offset

Should we offset our target position in world coordinates?

Default value: Vector3.zero

Field of ObjectSeeker: UpdateModes updateMode

Change this if you experience jitter

Default value: UpdateModes.Late

Field of ObjectSeeker: bool autoRetarget

Should we search for a new target if the current one is lost?

Default value: true

Auto move settings

Field of ObjectSeeker: bool instant

If true, follow speed is ignored and we’re always at the target position

Default value: false

Field of ObjectSeeker: Vector3 offset

Should we offset our target position in world coordinates?

Default value: Vector3.zero

Field of ObjectSeeker: UpdateModes updateMode

Change this if you experience jitter

Default value: UpdateModes.Late