ドキュメント

Unity Engine

Unity Engine

GetLocalVector(Vector2)

Gets a local vector on a body given a world vector.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public Vector2 GetLocalVector(Vector2 worldVector)

Parameters

worldVector

The world vector to transform.

Returns

Type

Description

Vector2The local vector relative to the body.