Physics API

api.physics

Method
Parameters
Returns
Description

shape: Shape mass: float

Body

Create a physics body with a shape and mass capable of collisions.

width: float length: float depth: float

Box

An axis-aligned bounding box.

radius: float

Sphere

It's just a sphere.

Last updated