11#include <unordered_map>
99 core::quaternion anim_rot(anim_rot_euler * core::DEGTORAD);
100 rot = rot * anim_rot;
104 rot.toEuler(rot_euler);
105 return rot_euler * core::RADTODEG;
187 v3f rotation,
bool force_visible) {}
189 v3f *rotation,
bool *force_visible)
const {}
std::unordered_map< std::string, BoneOverride > BoneOverrideMap
Definition activeobject.h:134
ActiveObjectCommand
Definition activeobject.h:45
@ AO_CMD_SET_TEXTURE_MOD
Definition activeobject.h:48
@ AO_CMD_OBSOLETE1
Definition activeobject.h:56
@ AO_CMD_SPAWN_INFANT
Definition activeobject.h:58
@ AO_CMD_SET_PROPERTIES
Definition activeobject.h:46
@ AO_CMD_PUNCHED
Definition activeobject.h:50
@ AO_CMD_UPDATE_POSITION
Definition activeobject.h:47
@ AO_CMD_SET_PHYSICS_OVERRIDE
Definition activeobject.h:55
@ AO_CMD_SET_ANIMATION
Definition activeobject.h:52
@ AO_CMD_SET_ANIMATION_SPEED
Definition activeobject.h:59
@ AO_CMD_ATTACH_TO
Definition activeobject.h:54
@ AO_CMD_UPDATE_ARMOR_GROUPS
Definition activeobject.h:51
@ AO_CMD_SET_BONE_POSITION
Definition activeobject.h:53
@ AO_CMD_SET_SPRITE
Definition activeobject.h:49
ActiveObjectType
Definition activeobject.h:14
@ ACTIVEOBJECT_TYPE_TEST
Definition activeobject.h:16
@ ACTIVEOBJECT_TYPE_PLAYER
Definition activeobject.h:26
@ ACTIVEOBJECT_TYPE_INVALID
Definition activeobject.h:15
@ ACTIVEOBJECT_TYPE_GENERIC
Definition activeobject.h:28
@ ACTIVEOBJECT_TYPE_LUAENTITY
Definition activeobject.h:24
Definition activeobject.h:141
virtual void clearParentAttachment()
Definition activeobject.h:193
object_t getId() const
Definition activeobject.h:150
virtual void setAttachment(object_t parent_id, const std::string &bone, v3f position, v3f rotation, bool force_visible)
Definition activeobject.h:186
virtual bool getCollisionBox(aabb3f *toset) const =0
ActiveObject(object_t id)
Definition activeobject.h:145
virtual void clearChildAttachments()
Definition activeobject.h:191
virtual void removeAttachmentChild(object_t child_id)
Definition activeobject.h:200
virtual void addAttachmentChild(object_t child_id)
Definition activeobject.h:199
virtual bool collideWithObjects() const =0
object_t m_id
Definition activeobject.h:203
void setId(object_t id)
Definition activeobject.h:155
virtual ActiveObjectType getType() const =0
virtual bool getSelectionBox(aabb3f *toset) const =0
u16 object_t
Definition activeobject.h:143
virtual void getAttachment(object_t *parent_id, std::string *bone, v3f *position, v3f *rotation, bool *force_visible) const
Definition activeobject.h:188
core::aabbox3d< f32 > aabb3f
Definition irr_aabb3d.h:11
core::vector3df v3f
Definition irr_v3d.h:11
Definition activeobject.h:33
ActiveObjectMessage(u16 id_, bool reliable_=true, std::string_view data_="")
Definition activeobject.h:34
std::string datastring
Definition activeobject.h:42
u16 id
Definition activeobject.h:40
bool reliable
Definition activeobject.h:41
Definition activeobject.h:65
bool absolute
Definition activeobject.h:68
v3f vector
Definition activeobject.h:67
v3f previous
Definition activeobject.h:66
f32 interp_timer
Definition activeobject.h:69
Definition activeobject.h:81
f32 interp_timer
Definition activeobject.h:88
core::quaternion next
Definition activeobject.h:83
core::quaternion previous
Definition activeobject.h:82
bool absolute
Definition activeobject.h:87
v3f next_radians
Definition activeobject.h:86
Definition activeobject.h:109
v3f previous
Definition activeobject.h:110
f32 interp_timer
Definition activeobject.h:113
v3f vector
Definition activeobject.h:111
bool absolute
Definition activeobject.h:112
Definition activeobject.h:63
v3f getRotationEulerDeg(v3f anim_rot_euler) const
Definition activeobject.h:91
v3f getPosition(v3f anim_pos) const
Definition activeobject.h:72
bool isIdentity() const
Definition activeobject.h:126
v3f getScale(v3f anim_scale) const
Definition activeobject.h:116
struct BoneOverride::ScaleProperty scale
f32 dtime_passed
Definition activeobject.h:124
struct BoneOverride::PositionProperty position
struct BoneOverride::RotationProperty rotation