EPhysics

Physics simulation integration and visual effects. More...

Topics

 EPhysics Quaternion
 Quaternions are used to perform linear algebra rotations.
 EPhysics Shape
 Shapes are used to create bodies with shapes that differ from primitive ones, like box and cylinder.
 EPhysics Camera
 A camera defines the region of the physics world that will be rendered on the canvas.
 EPhysics World
 A world is required to simulate physics between bodies.
 EPhysics Body
 A body is a representation of an object inside a physics world.
 EPhysics Constraint
 Constraints can be used to limit bodies movements, between bodies or between bodies and the world.

Functions

EPHYSICS_API int ephysics_init (void)
 Initialize EPhysics.
EPHYSICS_API int ephysics_shutdown (void)
 Shutdown EPhysics.

Detailed Description

Physics simulation integration and visual effects.

Function Documentation

◆ ephysics_init()

◆ ephysics_shutdown()

EPHYSICS_API int ephysics_shutdown ( void )

Shutdown EPhysics.

Shutdown Bullet physics engine. If init count reaches 0, all the existing worlds will be deleted, and consequently all the bodies.

Returns
EPhysics' init counter value.
See also
ephysics_init().
Examples
ephysics_logo.c, test_camera.c, test_camera_track.c, test_collision_detection.c, test_delete.c, test_growing_balls.c, and test_velocity.c.

References EPHYSICS_API, and ephysics_shutdown().

Referenced by ephysics_shutdown().