기술 자료

Unity Engine

Unity Engine

ToPosition(Vector2)

Transform a 2D PhysicsWorld position to a 3D custom world-space position.
읽는 시간 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.