文档

Unity Engine

Unity Engine

Create

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

Definition

Create(PhysicsWorld)

Create a body using PhysicsBodyDefinition.defaultDefinition in the specified world.
public static PhysicsBody Create(PhysicsWorld world)

Parameters

The world to create the body in.

Returns

Type

Description

PhysicsBodyThe created body.

Create(PhysicsWorld, PhysicsBodyDefinition)

Create a body in the specified world.
public static PhysicsBody Create(PhysicsWorld world, PhysicsBodyDefinition definition)

Parameters

The world to create the body in.

The body definition to use.

Returns

Type

Description

PhysicsBodyThe created body.