godot/scene/3d/physics/character_body_3d.cpp

/**************************************************************************/
/*  character_body_3d.cpp                                                 */
/**************************************************************************/
/*                         This file is part of:                          */
/*                             GODOT ENGINE                               */
/*                        https://godotengine.org                         */
/**************************************************************************/
/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */
/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                  */
/*                                                                        */
/* Permission is hereby granted, free of charge, to any person obtaining  */
/* a copy of this software and associated documentation files (the        */
/* "Software"), to deal in the Software without restriction, including    */
/* without limitation the rights to use, copy, modify, merge, publish,    */
/* distribute, sublicense, and/or sell copies of the Software, and to     */
/* permit persons to whom the Software is furnished to do so, subject to  */
/* the following conditions:                                              */
/*                                                                        */
/* The above copyright notice and this permission notice shall be         */
/* included in all copies or substantial portions of the Software.        */
/*                                                                        */
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,        */
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF     */
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY   */
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,   */
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE      */
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.                 */
/**************************************************************************/

#include "character_body_3d.h"

//so, if you pass 45 as limit, avoid numerical precision errors when angle is 45.
#define FLOOR_ANGLE_THRESHOLD

bool CharacterBody3D::move_and_slide() {}

void CharacterBody3D::_move_and_slide_grounded(double p_delta, bool p_was_on_floor) {}

void CharacterBody3D::_move_and_slide_floating(double p_delta) {}

void CharacterBody3D::apply_floor_snap() {}

void CharacterBody3D::_snap_on_floor(bool p_was_on_floor, bool p_vel_dir_facing_up) {}

bool CharacterBody3D::_on_floor_if_snapped(bool p_was_on_floor, bool p_vel_dir_facing_up) {}

void CharacterBody3D::_set_collision_direction(const PhysicsServer3D::MotionResult &p_result, CollisionState &r_state, CollisionState p_apply_state) {}

void CharacterBody3D::_set_platform_data(const PhysicsServer3D::MotionCollision &p_collision) {}

void CharacterBody3D::set_safe_margin(real_t p_margin) {}

real_t CharacterBody3D::get_safe_margin() const {}

const Vector3 &CharacterBody3D::get_velocity() const {}

void CharacterBody3D::set_velocity(const Vector3 &p_velocity) {}

bool CharacterBody3D::is_on_floor() const {}

bool CharacterBody3D::is_on_floor_only() const {}

bool CharacterBody3D::is_on_wall() const {}

bool CharacterBody3D::is_on_wall_only() const {}

bool CharacterBody3D::is_on_ceiling() const {}

bool CharacterBody3D::is_on_ceiling_only() const {}

const Vector3 &CharacterBody3D::get_floor_normal() const {}

const Vector3 &CharacterBody3D::get_wall_normal() const {}

const Vector3 &CharacterBody3D::get_last_motion() const {}

Vector3 CharacterBody3D::get_position_delta() const {}

const Vector3 &CharacterBody3D::get_real_velocity() const {}

real_t CharacterBody3D::get_floor_angle(const Vector3 &p_up_direction) const {}

const Vector3 &CharacterBody3D::get_platform_velocity() const {}

const Vector3 &CharacterBody3D::get_platform_angular_velocity() const {}

Vector3 CharacterBody3D::get_linear_velocity() const {}

int CharacterBody3D::get_slide_collision_count() const {}

PhysicsServer3D::MotionResult CharacterBody3D::get_slide_collision(int p_bounce) const {}

Ref<KinematicCollision3D> CharacterBody3D::_get_slide_collision(int p_bounce) {}

Ref<KinematicCollision3D> CharacterBody3D::_get_last_slide_collision() {}

bool CharacterBody3D::is_floor_stop_on_slope_enabled() const {}

void CharacterBody3D::set_floor_stop_on_slope_enabled(bool p_enabled) {}

bool CharacterBody3D::is_floor_constant_speed_enabled() const {}

void CharacterBody3D::set_floor_constant_speed_enabled(bool p_enabled) {}

bool CharacterBody3D::is_floor_block_on_wall_enabled() const {}

void CharacterBody3D::set_floor_block_on_wall_enabled(bool p_enabled) {}

bool CharacterBody3D::is_slide_on_ceiling_enabled() const {}

void CharacterBody3D::set_slide_on_ceiling_enabled(bool p_enabled) {}

uint32_t CharacterBody3D::get_platform_floor_layers() const {}

void CharacterBody3D::set_platform_floor_layers(uint32_t p_exclude_layers) {}

uint32_t CharacterBody3D::get_platform_wall_layers() const {}

void CharacterBody3D::set_platform_wall_layers(uint32_t p_exclude_layers) {}

void CharacterBody3D::set_motion_mode(MotionMode p_mode) {}

CharacterBody3D::MotionMode CharacterBody3D::get_motion_mode() const {}

void CharacterBody3D::set_platform_on_leave(PlatformOnLeave p_on_leave_apply_velocity) {}

CharacterBody3D::PlatformOnLeave CharacterBody3D::get_platform_on_leave() const {}

int CharacterBody3D::get_max_slides() const {}

void CharacterBody3D::set_max_slides(int p_max_slides) {}

real_t CharacterBody3D::get_floor_max_angle() const {}

void CharacterBody3D::set_floor_max_angle(real_t p_radians) {}

real_t CharacterBody3D::get_floor_snap_length() {}

void CharacterBody3D::set_floor_snap_length(real_t p_floor_snap_length) {}

real_t CharacterBody3D::get_wall_min_slide_angle() const {}

void CharacterBody3D::set_wall_min_slide_angle(real_t p_radians) {}

const Vector3 &CharacterBody3D::get_up_direction() const {}

void CharacterBody3D::set_up_direction(const Vector3 &p_up_direction) {}

void CharacterBody3D::_notification(int p_what) {}

void CharacterBody3D::_bind_methods() {}

void CharacterBody3D::_validate_property(PropertyInfo &p_property) const {}

CharacterBody3D::CharacterBody3D() :{}