기술 자료

Unity Engine

Unity Engine

PhysicsBody.BatchVelocity

A batch item used to set the velocity of a PhysicsBody.
읽는 시간 1분최근 업데이트: 22일 전

Definition

  • Type: Struct
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public struct PhysicsBody.BatchVelocity

Constructors

Constructor

Description

BatchVelocity(Unity.U2D.Physics.PhysicsBody)Create a default batch velocity, assigning the PhysicsBody.

Properties

Property

Description

angularVelocityThe angular velocity of the body, in degrees per second. PhysicsBody.angularVelocity.
linearVelocityThe linear velocity of the body. PhysicsBody.linearVelocity.
physicsBodyThe PhysicsBody to write to.