Engine » Physics » Gravity module

Adds gravity to particles.

Resources

  • Gravity - holds the global value of gravity.

Files

file gravity.hpp
Gravity plugin, resource cubos::engine::Gravity.

Functions

auto gravityPlugin(Cubos& cubos) -> CUBOS_ENGINE_API void
Plugin entry function.
auto physicsSolverPlugin(Cubos& cubos) -> CUBOS_ENGINE_API void
Plugin entry function.

Function documentation

CUBOS_ENGINE_API void gravityPlugin(Cubos& cubos)

Plugin entry function.

Parameters
cubos Cubos main class

CUBOS_ENGINE_API void physicsSolverPlugin(Cubos& cubos)

Plugin entry function.

Parameters
cubos Cubos main class