文档

Unity Engine

Unity Engine

ApplyForceToCenter(Vector2, bool)

Apply a force to the center of mass. PhysicsBody.ApplyForceToCenter.
阅读时间1 分钟最后更新于 1 个月前

Definition

public void ApplyForceToCenter(Vector2 force, bool wake = true)

Parameters

force

The world force vector, usually in newtons (N).

wake

Should the body be woken up.