기술 자료

Unity Engine

Unity Engine

CreateBody

Create a body using the PhysicsBodyDefinition.defaultDefinition in the world. See PhysicsBody.Create.
읽는 시간 1분최근 업데이트: 21일 전

Definition

  • Type: Method
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule

CreateBody()

Create a body using the PhysicsBodyDefinition.defaultDefinition in the world. See PhysicsBody.Create.
public PhysicsBody CreateBody()

Returns

Type

Description

PhysicsBodyThe created body.

CreateBody(PhysicsBodyDefinition)

Create a body in the world. See PhysicsBody.Create.
public PhysicsBody CreateBody(PhysicsBodyDefinition definition)

Parameters

The body definition to use.

Returns

Type

Description

PhysicsBodyThe created body.