You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The spider entity will not move even when the player is in the field of view. The issue is PathingMap is not registering just by using qRegisterMetaType<PathingMap>(); //(Line 45 in Game.cpp)
qRegisterMetaType(); requires that you first declare the struct using Q_DECLARE_METATYPE()
Using this instead of the above solves my issue. int qRegisterMetaType(const char * typeName)
i.e. qRegisterMetaType<PathingMap>("PathingMap"); //I was able to find this using the Debug messages.
Love your work,
Thank you,
Abhishek
The text was updated successfully, but these errors were encountered:
Hey,
The spider entity will not move even when the player is in the field of view. The issue is PathingMap is not registering just by using
qRegisterMetaType<PathingMap>(); //(Line 45 in Game.cpp)
qRegisterMetaType(); requires that you first declare the struct using Q_DECLARE_METATYPE()
Using this instead of the above solves my issue.
int qRegisterMetaType(const char * typeName)
i.e.
qRegisterMetaType<PathingMap>("PathingMap"); //I was able to find this using the Debug messages.
Love your work,
Thank you,
Abhishek
The text was updated successfully, but these errors were encountered: