ドキュメント

Unity Engine

Unity Engine

ToPosition(Vector2)

Transform a 2D PhysicsWorld position to a 3D custom world-space position.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public readonly Vector3 ToPosition(Vector2 position)

Parameters

position

The 2D position to transform.

Returns

Type

Description

Vector3The transformed 3D position.