Moving physics from Tick to HandlePhysics
#1
Bonjour!

I have recently been working on the Minecarts code, and it seems reasonably realistic. However, x-soft wants me to move the physics code from cMinecart::Tick to cMinecart::HandlePhysics.

However, I cannot get this to work. I understand that I have to do a:
Code:
virtual void HandlePhysics (float a_Dt, cChunk & a_Chunk) override;
in Minecart.h, then move the physics code to void HandlePhysics in Minecart.cpp, but the latter isn't doing anything.

Do I need a special super::Tick? super::HandlePhysics? HandlePhyics()? Do I need to copy the entire HandlePhysics code from Entity.cpp and add my own stuff because I'm overriding it?

I be confused: Huh
Reply
Thanks given by:


Messages In This Thread
Moving physics from Tick to HandlePhysics - by tigerw - 08-30-2013, 07:58 PM



Users browsing this thread: 1 Guest(s)