Companion

object Companion

Static functions for ShapeResource generator.

Functions

Link copied to clipboard
@JvmStatic
fun createBox(size: Vector3): ShapeResource

Creates a box-shaped ShapeResource with the specified dimensions.

Link copied to clipboard
@JvmStatic
fun createCapsule(height: Float, radius: Float): ShapeResource

Creates a capsule-shaped ShapeResource with the specified height and radius.

Link copied to clipboard

Creates a convex mesh-shaped ShapeResource from the given mesh.

Link copied to clipboard
@JvmStatic
fun createSphere(radius: Float): ShapeResource

Creates a sphere-shaped ShapeResource with the specified radius.

Link copied to clipboard

Creates a static mesh-shaped ShapeResource from the given mesh.