GAMEDEV.NET
Memory errors when accessing property
Hi! I'm adding AngelScript to my simple engine, which has a class like so:class Transform3D{ glm::vec3 get_pos() const { clear_dirty(); return pos; }private: glm::vec3 pos;}class Node3D : Node{private: Transform3D transform;public: Transform3D& get_transform();}auto transform_to_str(const Transform3D* trans) -> std::string{ // just show the pos for now return glm::to_string(trans->get_pos());} I registered
0 Compartilhamentos
51 Visualizações