UGDK
0.5.0
|
#include <ugdk/action/3D/component/physicsbody.h>
Classes | |
struct | PhysicsData |
Public Member Functions | |
PhysicsBody (Physics &physics, const PhysicsData &physics_data) | |
~PhysicsBody () | |
double | mass () const override |
short | collision_group () const override |
short | collides_with () const override |
void | set_angular_factor (double x_axis, double y_axis, double z_axis) override |
void | set_restitution (double factor) override |
void | set_friction (double frict) override |
void | set_damping (double linear, double angular) override |
void | SetRespondsOnContact (bool has_response) override |
void | SetContinuousCollisionDetection (double speed_threshold, double sphere_radius) override |
Ogre::Vector3 | position () const override |
Ogre::Quaternion | orientation () const override |
void | set_orientation (const Ogre::Vector3 &dir) override |
Ogre::Vector3 | linear_velocity () const override |
void | set_linear_velocity (const Ogre::Vector3 &velocity) override |
Ogre::Vector3 | angular_velocity () const override |
Ogre::Vector3 | GetVelocityInPoint (const Ogre::Vector3 &point) const override |
void | Translate (double move_x, double move_y, double move_z) override |
void | ApplyImpulse (double imp_x, double imp_y, double imp_z) override |
void | ApplyImpulse (const Ogre::Vector3 &imp, const Ogre::Vector3 &relative_pos) override |
void | Rotate (double yaw, double pitch, double roll) override |
void | Scale (double factor_x, double factor_y, double factor_z) override |
void | AddCollisionAction (short target_mask, const CollisionAction &action) override |
Public Member Functions inherited from ugdk::action::mode3d::component::Body | |
std::type_index | type () const override |
void | Translate (const Ogre::Vector3 &move) |
void | ApplyImpulse (const Ogre::Vector3 &imp) |
Public Member Functions inherited from ugdk::action::mode3d::Component | |
virtual | ~Component () |
std::shared_ptr< Element > | owner () const |
Protected Member Functions | |
void | OnTaken () override |
TODO: Make this not accessible from Object. More... | |
Protected Member Functions inherited from ugdk::action::mode3d::component::Body | |
Body () | |
Protected Member Functions inherited from ugdk::action::mode3d::Component | |
Component () | |
void | Take (const std::weak_ptr< Element > &the_owner) |
Friends | |
class | ::ugdk::action::mode3d::Physics |
|
inline |
ugdk::action::mode3d::component::PhysicsBody::~PhysicsBody | ( | ) |
|
overridevirtual |
Implements ugdk::action::mode3d::component::Body.
|
overridevirtual |
Implements ugdk::action::mode3d::component::Body.
|
overridevirtual |
Implements ugdk::action::mode3d::component::Body.
|
overridevirtual |
Implements ugdk::action::mode3d::component::Body.
|
inlineoverridevirtual |
Implements ugdk::action::mode3d::component::Body.
|
inlineoverridevirtual |
Implements ugdk::action::mode3d::component::Body.
|
overridevirtual |
Implements ugdk::action::mode3d::component::Body.
|
overridevirtual |
Implements ugdk::action::mode3d::component::Body.
|
inlineoverridevirtual |
Implements ugdk::action::mode3d::component::Body.
|
overrideprotectedvirtual |
TODO: Make this not accessible from Object.
Reimplemented from ugdk::action::mode3d::component::Body.
|
overridevirtual |
Implements ugdk::action::mode3d::component::Body.
|
overridevirtual |
Implements ugdk::action::mode3d::component::Body.
|
overridevirtual |
Implements ugdk::action::mode3d::component::Body.
|
overridevirtual |
Implements ugdk::action::mode3d::component::Body.
|
overridevirtual |
Implements ugdk::action::mode3d::component::Body.
|
overridevirtual |
Implements ugdk::action::mode3d::component::Body.
|
overridevirtual |
Implements ugdk::action::mode3d::component::Body.
|
overridevirtual |
Implements ugdk::action::mode3d::component::Body.
|
overridevirtual |
Implements ugdk::action::mode3d::component::Body.
|
overridevirtual |
Implements ugdk::action::mode3d::component::Body.
|
overridevirtual |
Implements ugdk::action::mode3d::component::Body.
|
overridevirtual |
Implements ugdk::action::mode3d::component::Body.
|
overridevirtual |
Implements ugdk::action::mode3d::component::Body.
|
friend |