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_cc_component (entt::registry &r, entt::entity e)
 
static void on_destroy_cc_component (entt::registry &r, entt::entity e)
 
static void on_destroy_bullet_cc_component (entt::registry &r, entt::entity e)
 
static void move_character (character_controller_component &comp, const math::vec3 &displacement)
 
static void jump_character (character_controller_component &comp, const math::vec3 &direction)
 
static void apply_impulse_character (character_controller_component &comp, const math::vec3 &impulse)
 
static void warp_character (character_controller_component &comp, const math::vec3 &position)
 
static void set_character_linear_velocity (character_controller_component &comp, const math::vec3 &velocity)
 
static void sync_character_runtime_state (character_controller_component &comp)
 
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)
 
static void draw_gizmo (rtti::context &ctx, character_controller_component &comp, const camera &cam, gfx::dd_raii &dd)
 

Detailed Description

Definition at line 20 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 2311 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 2371 of file bullet_backend.cpp.

◆ apply_impulse_character()

void unravel::bullet_backend::apply_impulse_character ( character_controller_component & comp,
const math::vec3 & impulse )
static

Definition at line 2228 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 2388 of file bullet_backend.cpp.

◆ clear_kinematic_velocities()

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

Definition at line 2405 of file bullet_backend.cpp.

◆ deinit()

void unravel::bullet_backend::deinit ( )

Definition at line 2136 of file bullet_backend.cpp.

◆ draw_gizmo() [1/2]

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

Definition at line 2669 of file bullet_backend.cpp.

◆ draw_gizmo() [2/2]

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

Definition at line 2665 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 2649 of file bullet_backend.cpp.

◆ init()

void unravel::bullet_backend::init ( )

Definition at line 2130 of file bullet_backend.cpp.

◆ jump_character()

void unravel::bullet_backend::jump_character ( character_controller_component & comp,
const math::vec3 & direction )
static

Definition at line 2217 of file bullet_backend.cpp.

◆ move_character()

void unravel::bullet_backend::move_character ( character_controller_component & comp,
const math::vec3 & displacement )
static

Definition at line 2206 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 2273 of file bullet_backend.cpp.

◆ on_create_cc_component()

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

Definition at line 2175 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 2141 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 2292 of file bullet_backend.cpp.

◆ on_destroy_bullet_cc_component()

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

Definition at line 2196 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 2164 of file bullet_backend.cpp.

◆ on_destroy_cc_component()

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

Definition at line 2186 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 2153 of file bullet_backend.cpp.

◆ on_frame_update()

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

Definition at line 2562 of file bullet_backend.cpp.

◆ on_pause()

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

Definition at line 2548 of file bullet_backend.cpp.

◆ on_play_begin()

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

Definition at line 2497 of file bullet_backend.cpp.

◆ on_play_end()

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

Definition at line 2522 of file bullet_backend.cpp.

◆ on_resume()

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

Definition at line 2552 of file bullet_backend.cpp.

◆ on_skip_next_frame()

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

Definition at line 2556 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 2423 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 2438 of file bullet_backend.cpp.

◆ set_character_linear_velocity()

void unravel::bullet_backend::set_character_linear_velocity ( character_controller_component & comp,
const math::vec3 & velocity )
static

Definition at line 2250 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 2453 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 2469 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 2485 of file bullet_backend.cpp.

◆ sync_character_runtime_state()

void unravel::bullet_backend::sync_character_runtime_state ( character_controller_component & comp)
static

Definition at line 2261 of file bullet_backend.cpp.

◆ warp_character()

void unravel::bullet_backend::warp_character ( character_controller_component & comp,
const math::vec3 & position )
static

Definition at line 2239 of file bullet_backend.cpp.


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