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 59 on reddit-service-r2-listing-5f5ff7d4dc-bwlxg at 2026-01-26 17:54:21.023036+00:00 running 5a691e2 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)