From 2aa6c935e2996c001079922863bcc4e62b6b0f61 Mon Sep 17 00:00:00 2001 From: Stephen Simpson Date: Fri, 14 Oct 2011 17:02:24 -0500 Subject: moved setNewCollisionRect to player.h so multiple actors can call it updated MG with attempted fixes for anmChr changed banm_c's _setUpdateRate and others to public for anmChr --- include/game.h | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'include/game.h') diff --git a/include/game.h b/include/game.h index b6b07dd..bbb7de0 100755 --- a/include/game.h +++ b/include/game.h @@ -2201,28 +2201,5 @@ inline u8 *getResource(const char *arcName, const char *fileName) { inline void scaleDown(Vec* scale, float amt) { scale->x -= amt; scale->y -= amt; scale->z -= amt; } inline void scaleUp(Vec* scale, float amt) { scale->x -= amt; scale->y -= amt; scale->z -= amt; } -inline void setNewActivePhysicsRect(dStageActor_c* actor, Vec* scale) { - float amtX = scale->x; - float amtY = scale->y; - - ActivePhysics::Info info; - info.xDistToCenter = 0.0; - info.yDistToCenter = 3.0 * amtY; - info.xDistToEdge = 4.0 * amtX; - info.yDistToEdge = 4.0 * amtY; - - info.category1 = actor->aPhysics.info.category1; - info.category2 = actor->aPhysics.info.category2; - info.bitfield1 = actor->aPhysics.info.bitfield1; - info.bitfield2 = actor->aPhysics.info.bitfield2; - info.unkShort1C = actor->aPhysics.info.unkShort1C; - info.callback = actor->aPhysics.info.callback; - - OSReport("Making new Physics Class and adding to the list\n"); - actor->aPhysics.removeFromList(); - actor->aPhysics.initWithStruct(actor, &info); - actor->aPhysics.addToList(); -} - #endif -- cgit v1.2.3