文档

Unity Engine

Unity Engine

PhysicsBody.BatchVelocity

A batch item used to set the velocity of a PhysicsBody.
阅读时间1 分钟最后更新于 1 个月前

Definition

public struct PhysicsBody.BatchVelocity

Constructors

Constructor

Description

BatchVelocity(UnityEngine.LowLevelPhysics2D.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.