Unravel Engine C++ Reference
Loading...
Searching...
No Matches
unravel::bullet_backend Struct Reference

#include <bullet_backend.h>

Public Member Functions

void init ()
 
void deinit ()
 
void on_frame_update (rtti::context &ctx, delta_t dt)
 
void on_play_begin (rtti::context &ctx)
 
void on_play_end (rtti::context &ctx)
 
void on_pause (rtti::context &ctx)
 
void on_resume (rtti::context &ctx)
 
void on_skip_next_frame (rtti::context &ctx)
 

Static Public Member Functions

static void apply_explosion_force (physics_component &comp, float explosion_force, const math::vec3 &explosion_position, float explosion_radius, float upwards_modifier, force_mode mode)
 
static void apply_force (physics_component &comp, const math::vec3 &force, force_mode mode)
 
static void apply_torque (physics_component &comp, const math::vec3 &toruqe, force_mode mode)
 
static void clear_kinematic_velocities (physics_component &comp)
 
static auto ray_cast (const math::vec3 &origin, const math::vec3 &direction, float max_distance, int layer_mask, bool query_sensors) -> hpp::optional< raycast_hit >
 
static auto ray_cast_all (const math::vec3 &origin, const math::vec3 &direction, float max_distance, int layer_mask, bool query_sensors) -> physics_vector< raycast_hit >
 
static auto sphere_cast (const math::vec3 &origin, const math::vec3 &direction, float radius, float max_distance, int layer_mask, bool query_sensors) -> hpp::optional< raycast_hit >
 
static auto sphere_cast_all (const math::vec3 &origin, const math::vec3 &direction, float radius, float max_distance, int layer_mask, bool query_sensors) -> physics_vector< raycast_hit >
 
static auto sphere_overlap (const math::vec3 &origin, float radius, int layer_mask, bool query_sensors) -> physics_vector< entt::entity >
 
static void on_create_component (entt::registry &r, entt::entity e)
 
static void on_destroy_component (entt::registry &r, entt::entity e)
 
static void on_destroy_bullet_rigidbody_component (entt::registry &r, entt::entity e)
 
static void on_create_active_component (entt::registry &r, entt::entity e)
 
static void on_destroy_active_component (entt::registry &r, entt::entity e)
 
static void draw_system_gizmos (rtti::context &ctx, const camera &cam, gfx::dd_raii &dd)
 
static void draw_gizmo (rtti::context &ctx, physics_component &comp, const camera &cam, gfx::dd_raii &dd)
 

Detailed Description

Definition at line 19 of file bullet_backend.h.

Member Function Documentation

◆ apply_explosion_force()

void unravel::bullet_backend::apply_explosion_force ( physics_component & comp,
float explosion_force,
const math::vec3 & explosion_position,
float explosion_radius,
float upwards_modifier,
force_mode mode )
static

Definition at line 1859 of file bullet_backend.cpp.

◆ apply_force()

void unravel::bullet_backend::apply_force ( physics_component & comp,
const math::vec3 & force,
force_mode mode )
static

Definition at line 1919 of file bullet_backend.cpp.

◆ apply_torque()

void unravel::bullet_backend::apply_torque ( physics_component & comp,
const math::vec3 & toruqe,
force_mode mode )
static

Definition at line 1936 of file bullet_backend.cpp.

◆ clear_kinematic_velocities()

void unravel::bullet_backend::clear_kinematic_velocities ( physics_component & comp)
static

Definition at line 1953 of file bullet_backend.cpp.

◆ deinit()

void unravel::bullet_backend::deinit ( )

Definition at line 1790 of file bullet_backend.cpp.

◆ draw_gizmo()

void unravel::bullet_backend::draw_gizmo ( rtti::context & ctx,
physics_component & comp,
const camera & cam,
gfx::dd_raii & dd )
static

Definition at line 2188 of file bullet_backend.cpp.

◆ draw_system_gizmos()

void unravel::bullet_backend::draw_system_gizmos ( rtti::context & ctx,
const camera & cam,
gfx::dd_raii & dd )
static

Definition at line 2172 of file bullet_backend.cpp.

◆ init()

void unravel::bullet_backend::init ( )

Definition at line 1784 of file bullet_backend.cpp.

◆ on_create_active_component()

void unravel::bullet_backend::on_create_active_component ( entt::registry & r,
entt::entity e )
static

Definition at line 1829 of file bullet_backend.cpp.

◆ on_create_component()

void unravel::bullet_backend::on_create_component ( entt::registry & r,
entt::entity e )
static

Definition at line 1795 of file bullet_backend.cpp.

◆ on_destroy_active_component()

void unravel::bullet_backend::on_destroy_active_component ( entt::registry & r,
entt::entity e )
static

Definition at line 1844 of file bullet_backend.cpp.

◆ on_destroy_bullet_rigidbody_component()

void unravel::bullet_backend::on_destroy_bullet_rigidbody_component ( entt::registry & r,
entt::entity e )
static

Definition at line 1818 of file bullet_backend.cpp.

◆ on_destroy_component()

void unravel::bullet_backend::on_destroy_component ( entt::registry & r,
entt::entity e )
static

Definition at line 1807 of file bullet_backend.cpp.

◆ on_frame_update()

void unravel::bullet_backend::on_frame_update ( rtti::context & ctx,
delta_t dt )

Definition at line 2098 of file bullet_backend.cpp.

◆ on_pause()

void unravel::bullet_backend::on_pause ( rtti::context & ctx)

Definition at line 2084 of file bullet_backend.cpp.

◆ on_play_begin()

void unravel::bullet_backend::on_play_begin ( rtti::context & ctx)

Definition at line 2045 of file bullet_backend.cpp.

◆ on_play_end()

void unravel::bullet_backend::on_play_end ( rtti::context & ctx)

Definition at line 2064 of file bullet_backend.cpp.

◆ on_resume()

void unravel::bullet_backend::on_resume ( rtti::context & ctx)

Definition at line 2088 of file bullet_backend.cpp.

◆ on_skip_next_frame()

void unravel::bullet_backend::on_skip_next_frame ( rtti::context & ctx)

Definition at line 2092 of file bullet_backend.cpp.

◆ ray_cast()

auto unravel::bullet_backend::ray_cast ( const math::vec3 & origin,
const math::vec3 & direction,
float max_distance,
int layer_mask,
bool query_sensors ) -> hpp::optional<raycast_hit>
static

Definition at line 1971 of file bullet_backend.cpp.

◆ ray_cast_all()

auto unravel::bullet_backend::ray_cast_all ( const math::vec3 & origin,
const math::vec3 & direction,
float max_distance,
int layer_mask,
bool query_sensors ) -> physics_vector<raycast_hit>
static

Definition at line 1986 of file bullet_backend.cpp.

◆ sphere_cast()

auto unravel::bullet_backend::sphere_cast ( const math::vec3 & origin,
const math::vec3 & direction,
float radius,
float max_distance,
int layer_mask,
bool query_sensors ) -> hpp::optional<raycast_hit>
static

Definition at line 2001 of file bullet_backend.cpp.

◆ sphere_cast_all()

auto unravel::bullet_backend::sphere_cast_all ( const math::vec3 & origin,
const math::vec3 & direction,
float radius,
float max_distance,
int layer_mask,
bool query_sensors ) -> physics_vector<raycast_hit>
static

Definition at line 2017 of file bullet_backend.cpp.

◆ sphere_overlap()

auto unravel::bullet_backend::sphere_overlap ( const math::vec3 & origin,
float radius,
int layer_mask,
bool query_sensors ) -> physics_vector<entt::entity>
static

Definition at line 2033 of file bullet_backend.cpp.


The documentation for this struct was generated from the following files: