文档

Unity Engine

Unity Engine

CreateBody

Create a body using the PhysicsBodyDefinition.defaultDefinition in the world. See PhysicsBody.Create.
阅读时间1 分钟最后更新于 1 个月前

Definition

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.