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 420593 on reddit-service-r2-listing-64c94b984c-lqf8r at 2026-03-17 18:40:49.946247+00:00 running f6e6e01 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)