4 #include "blub/core/globals.hpp"
5 #include "blub/math/vector3.hpp"
6 #include "blub/math/quaternion.hpp"
8 # include <foundation/PxTransform.h>
12 #ifdef BLUB_USE_BULLET
27 transform(
const physx::PxTransform& other)
28 : position(other.p), rotation(other.q), scale(1.)
30 operator physx::PxTransform()
const
31 {
return physx::PxTransform(position, rotation);}
33 #ifdef BLUB_USE_BULLET
35 operator btTransform()
const;
38 bool operator ==(
const transform& other)
const;
39 bool operator !=(
const transform& other)
const;
51 BLUB_SERIALIZATION_ACCESS
52 template<
typename Archive>
53 void serialize(Archive & readWrite,
const unsigned int version)
57 readWrite & BLUB_SERIALIZATION_NAMEVALUEPAIR(position);
58 readWrite & BLUB_SERIALIZATION_NAMEVALUEPAIR(rotation);
59 readWrite & BLUB_SERIALIZATION_NAMEVALUEPAIR(scale);
64 std::ostream& operator << (std::ostream& ostr,
const blub::transform& toCast);
69 #endif // TRANSFORM_HPP
Definition: quaternion.hpp:25
Definition: vector3.hpp:26
Definition: deadlineTimer.hpp:10