文档

Unity Engine

Unity Engine

Impulse

Add an instant force impulse to the rigidbody2D, using its mass.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Field
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
Impulse = 1

Remarks

Apply the impulse force instantly. This mode depends on the mass of rigidbody so more force must be applied to move higher-mass objects the same amount as lower-mass objects.
This mode is useful for applying forces that happen instantly, such as forces from explosions or collisions.