b3dCreatePhysicsBody

Creates physics body for entity (shape: 0=box 1=sphere 2=mesh, mass 0=static >0=dynamic, returns bodyHandle). Takes entityHandle (entity to attach physics to), shape (0=box 1=sphere 2=mesh), mass (0.0=static non-moving, >0=dynamic affected by gravity/forces), width/height/depth (dimensions in world units, ignored for mesh shape). Returns bodyHandle (physics body handle for subsequent operations, 0 on failure).

3D Graphics

Parameters & Returns

Parameters

entityHandle Int
shape Int
mass Double
width Double
height Double
depth Double

Returns

Int

Quick Summary

Creates physics body for entity (shape: 0=box 1=sphere 2=mesh, mass 0=static >0=dynamic, returns bodyHandle). Takes entityHandle (entity to attach physics to), shape (0=box 1=sphere 2=mesh), mass (0.0=static non-moving, >0=dynamic affected by gravity/forces), width/height/depth (dimensions in world units, ignored for mesh shape). Returns bodyHandle (physics body handle for subsequent operations, 0 on failure).

Technical Exegesis...

Creates physics body for entity (shape: 0=box 1=sphere 2=mesh, mass 0=static >0=dynamic). Takes entityHandle (entity to attach physics to), shape (0=box 1=sphere 2=mesh), mass (0.0=static non-moving, >0=dynamic affected by gravity/forces), width/height/depth (dimensions in world units, ignored for mesh shape). Returns bodyHandle (physics body handle for subsequent operations, 0 on failure). Creates Jolt physics body, attaches to entity, enables collision detection and physical simulation.

Example

Example.bam
; No example implemented yet