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:
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:
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;
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: