bullet API Reference

*Auto-generated from module reflection*

NanoLang Mascot

Functions

extern fn nl_bullet_init() -> int

**Returns:** int

extern fn nl_bullet_cleanup() -> void

**Returns:** void

extern fn nl_bullet_step(_time_step: float) -> void

**Parameters:**

NameType
_time_stepfloat

**Returns:** void

extern fn nl_bullet_set_gravity(_gx: float, _gy: float, _gz: float) -> void

**Parameters:**

NameType
_gxfloat
_gyfloat
_gzfloat

**Returns:** void

extern fn nl_bullet_create_soft_sphere(_x: float, _y: float, _z: float, _radius: float, _resolution: int) -> int

**Parameters:**

NameType
_xfloat
_yfloat
_zfloat
_radiusfloat
_resolutionint

**Returns:** int

extern fn nl_bullet_create_rigid_sphere(_x: float, _y: float, _z: float, _radius: float, _mass: float, _restitution: float) -> int

**Parameters:**

NameType
_xfloat
_yfloat
_zfloat
_radiusfloat
_massfloat
_restitutionfloat

**Returns:** int

extern fn nl_bullet_create_rigid_box(_x: float, _y: float, _z: float, _half_width: float, _half_height: float, _half_depth: float, _mass: float, _restitution: float) -> int

**Parameters:**

NameType
_xfloat
_yfloat
_zfloat
_half_widthfloat
_half_heightfloat
_half_depthfloat
_massfloat
_restitutionfloat

**Returns:** int

extern fn nl_bullet_create_rigid_box_rotated(_x: float, _y: float, _z: float, _half_width: float, _half_height: float, _half_depth: float, _angle_degrees: float, _mass: float, _restitution: float) -> int

**Parameters:**

NameType
_xfloat
_yfloat
_zfloat
_half_widthfloat
_half_heightfloat
_half_depthfloat
_angle_degreesfloat
_massfloat
_restitutionfloat

**Returns:** int

extern fn nl_bullet_get_soft_body_count() -> int

**Returns:** int

extern fn nl_bullet_get_soft_body_node_count(_handle: int) -> int

**Parameters:**

NameType
_handleint

**Returns:** int

extern fn nl_bullet_get_soft_body_node_x(_handle: int, _node_idx: int) -> float

**Parameters:**

NameType
_handleint
_node_idxint

**Returns:** float

extern fn nl_bullet_get_soft_body_node_y(_handle: int, _node_idx: int) -> float

**Parameters:**

NameType
_handleint
_node_idxint

**Returns:** float

extern fn nl_bullet_get_soft_body_node_z(_handle: int, _node_idx: int) -> float

**Parameters:**

NameType
_handleint
_node_idxint

**Returns:** float

extern fn nl_bullet_remove_soft_body(_handle: int) -> void

**Parameters:**

NameType
_handleint

**Returns:** void

extern fn nl_bullet_get_rigid_body_count() -> int

**Returns:** int

extern fn nl_bullet_get_rigid_body_x(_handle: int) -> float

**Parameters:**

NameType
_handleint

**Returns:** float

extern fn nl_bullet_get_rigid_body_y(_handle: int) -> float

**Parameters:**

NameType
_handleint

**Returns:** float

extern fn nl_bullet_get_rigid_body_z(_handle: int) -> float

**Parameters:**

NameType
_handleint

**Returns:** float

extern fn nl_bullet_get_rigid_body_rot_x(_handle: int) -> float

**Parameters:**

NameType
_handleint

**Returns:** float

extern fn nl_bullet_get_rigid_body_rot_y(_handle: int) -> float

**Parameters:**

NameType
_handleint

**Returns:** float

extern fn nl_bullet_get_rigid_body_rot_z(_handle: int) -> float

**Parameters:**

NameType
_handleint

**Returns:** float

extern fn nl_bullet_get_rigid_body_rot_w(_handle: int) -> float

**Parameters:**

NameType
_handleint

**Returns:** float

Structs

*No public structs*

Enums

*No public enums*

Unions

*No public unions*

Opaque Types

*No opaque types*

Constants

*No constants*