19#ifndef HEADER_KART_MOTION_STATE_HPP
20#define HEADER_KART_MOTION_STATE_HPP
23#include "utils/vs.hpp"
25#include "LinearMath/btMotionState.h"
36 btTransform m_center_of_mass;
44 : m_center_of_mass(start_trans)
56 center_of_mass = m_center_of_mass;
66 assert(!std::isnan(new_trans.getOrigin().getX()));
67 assert(!std::isnan(new_trans.getOrigin().getY()));
68 assert(!std::isnan(new_trans.getOrigin().getZ()));
69 assert(!std::isnan(new_trans.getRotation().getX()));
70 assert(!std::isnan(new_trans.getRotation().getY()));
71 assert(!std::isnan(new_trans.getRotation().getZ()));
72 assert(!std::isnan(new_trans.getRotation().getW()));
73 m_center_of_mass = new_trans;
This is a very simple motion state implementation for bullet, which does not support any transformati...
Definition: kart_motion_state.hpp:34
KartMotionState(const btTransform &start_trans=btTransform::getIdentity())
Constructor.
Definition: kart_motion_state.hpp:43
virtual void getWorldTransform(btTransform ¢er_of_mass) const
Returns the current world transform.
Definition: kart_motion_state.hpp:54
virtual void setWorldTransform(const btTransform &new_trans)
Synchronizes world transform from physics to user.
Definition: kart_motion_state.hpp:64