ドキュメント

Unity Engine

Unity Engine

Warp(Vector3)

Warps agent to the provided position.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: UnityEngine.AI
  • Assembly: UnityEngine.AIModule
public bool Warp(Vector3 newPosition)

Parameters

newPosition

New position to warp the agent to.

Returns

Type

Description

boolTrue if agent is successfully warped, otherwise false.

Remarks

Returns true if successful, otherwise returns false.