Moving physics from Tick to HandlePhysics
#2
First of all, make sure your cMinecart::HandlePhysics() is called - put a breakpoint in it and place a minecart. If the breakpoint isn't hit, then there's something wrong. Also, make sure you remove the cMinecart::Tick() completely, both from the header and the cpp file (comment it out, so that you can keep your code for later)

If it is called, then paste all the physics handling code into it. Note that the code should not call super::Tick(); it might call super::HandlePhysics() if you want it to, but it's not required.

When in doubt, put LOGD() in key places to verify that things are what you expect them to be.
Reply
Thanks given by:


Messages In This Thread
RE: Moving physics from Tick to HandlePhysics - by xoft - 08-30-2013, 08:11 PM



Users browsing this thread: 2 Guest(s)