86 const v3s16 real_under,
const v3f point,
const v3f normal,
110 std::string
dump()
const;
119 return !(*
this == pt2);
core::vector3d< s16 > v3s16
Definition irr_v3d.h:13
core::vector3df v3f
Definition irr_v3d.h:11
PointabilityType
Definition pointabilities.h:13
PointedThingType
Definition pointedthing.h:14
@ POINTEDTHING_OBJECT
Definition pointedthing.h:17
@ POINTEDTHING_NODE
Definition pointedthing.h:16
@ POINTEDTHING_NOTHING
Definition pointedthing.h:15
An active object or node which is selected by a ray on the map.
Definition pointedthing.h:22
f32 distanceSq
Definition pointedthing.h:80
PointedThing(const v3s16 under, const v3s16 above, const v3s16 real_under, const v3f point, const v3f normal, u16 box_id, f32 distSq, PointabilityType pointab)
Constructor for POINTEDTHING_NODE.
Definition pointedthing.h:85
v3f intersection_normal
Definition pointedthing.h:70
std::string dump() const
Definition pointedthing.cpp:11
v3s16 node_abovesurface
Definition pointedthing.h:41
v3f raw_intersection_normal
Definition pointedthing.h:75
PointedThing()=default
Constructor for POINTEDTHING_NOTHING.
u16 box_id
Definition pointedthing.h:57
PointabilityType pointability
How the object or node can be pointed at.
Definition pointedthing.h:26
v3s16 node_undersurface
Definition pointedthing.h:34
bool operator!=(const PointedThing &pt2) const
Definition pointedthing.h:118
v3f intersection_point
Definition pointedthing.h:63
void deSerialize(std::istream &is)
Definition pointedthing.cpp:52
PointedThingType type
The type of the pointed object.
Definition pointedthing.h:24
void serialize(std::ostream &os) const
Definition pointedthing.cpp:35
bool operator==(const PointedThing &pt2) const
Definition pointedthing.cpp:73
v3s16 node_real_undersurface
Definition pointedthing.h:47
u16 object_id
Definition pointedthing.h:52
PointedThing(u16 id, const v3f point, const v3f normal, const v3f raw_normal, f32 distSq, PointabilityType pointab)
Constructor for POINTEDTHING_OBJECT.
Definition pointedthing.h:99