modified for CC_USE_PHYSICS