natiny_physics_plane

C
NatinyBody natiny_physics_plane(float w, float d);

Creates a static, flat rectangle in the XZ plane: the ground.

Parameters

Name Type Description
w float Width, the full size along X
d float Depth, the full size along Z

Returns

Type Description
NatinyBody Body handle, also usable as a NatinyEntity; 0 on failure

Example

C
NatinyBody ground = natiny_physics_plane(50.0f, 50.0f);