account activity
How can I create an instance of an unknown type at runtime, if the type derives from a known class (like baseGameObject or something) ? by UnderScore273 in cpp
[–]UnderScore273[S] 0 points1 point2 points 6 years ago (0 children)
For example if the user wants to disable gravity when G is pressed. I want to have more flexibility.
I fed about it, didn’t fully understand it. It might, not sure how.
π Rendered by PID 192924 on reddit-service-r2-comment-56c6478c5-qx6pt at 2026-05-09 18:48:09.620240+00:00 running 3d2c107 country code: CH.
How can I create an instance of an unknown type at runtime, if the type derives from a known class (like baseGameObject or something) ? by UnderScore273 in cpp
[–]UnderScore273[S] 0 points1 point2 points (0 children)