Really... O.o holly shit balls!LuisR14 wrote:yea i know lol, just filling up the post spaceSpaceAnimation wrote:@Luis its not the typos ... rofl ... my actual code doesn't have typos ... and i cant see any typos apart from the one you pointed out, which now has been fixed. LMAO!
It compiles fine (if it had typos it wouldn't compile).so yea, don't know what's happening in your code to know why it's not workingSpaceAnimation wrote:I get a crash during runtime when using dynamic_cast but not when using static_cast
EDIT: without seeing some more code that is lol
and in my own tests using your method the dynamic cast works, yet it doesn't work for you? o0 @.@
The code I gave you was a very simplified version as to what is actually going on. I have only shown a simple version as the code I'm using is written by NVIDIA ( I'm using the PhysX API). Trying to think how I can show the work without uploading the code here - don't think I'm supposed to redistribute the code as a whole). But yea we agree on one thing is that my concept works and I must have a good understanding of polymorphism and dynamic_cast . Hmm so that is promising ...