Version: Unity 6.3 Beta (6000.3)
LanguageEnglish
  • C#

BatchForce

struct in UnityEngine.LowLevelPhysics2D

/

Implemented in:UnityEngine.Physics2DModule

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

A batch item used to apply a force to a PhysicsBody.

Properties

Property Description
physicsBody The PhysicsBody to write to.

Constructors

Constructor Description
PhysicsBody.BatchForce Create a default batch force, assigning the PhysicsBody.

Public Methods

Method Description
ApplyForce Apply a force at a world point. If the force is not applied at the center of mass, it will generate a torque and affect the angular velocity. PhysicsBody.ApplyForce.
ApplyForceToCenter Apply a force to the center of mass. PhysicsBody.ApplyForceToCenter.
ApplyTorque Apply a torque. This affects the angular velocity without affecting the linear velocity. PhysicsBody.ApplyTorque.