기술 자료

Unity Engine

Unity Engine

GetRelativePointVelocity(Vector2)

The velocity of the rigidbody at the point Point in local space.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
public Vector2 GetRelativePointVelocity(Vector2 relativePoint)

Parameters

relativePoint

The local space point to calculate velocity for.

Returns

Type

Description

Vector2

Remarks

GetRelativePointVelocity will take the angularVelocity of the rigidbody into account when calculating the velocity.