createShape

abstract fun createShape(geom: Geometry): Shape

Creates a baked, physics-ready form of a Geometry, which starts with a reference count of 1. See RefCounted for information on using ref-counted objects.

Parameters

geom

The geometry to bake.