diff options
author | Colin Noga <Tempus@chronometry.ca> | 2012-02-20 15:01:44 -0600 |
---|---|---|
committer | Colin Noga <Tempus@chronometry.ca> | 2012-02-20 15:01:44 -0600 |
commit | 2a5a88dfe5556e89afa33eda37309944cd8b0c01 (patch) | |
tree | e299b0343fb7e5af2675cc0af4d709b55aca3bf8 /src/player.cpp | |
parent | d776ce7cec5028eeed881f70979a5444e1cc0e65 (diff) | |
download | kamek-2a5a88dfe5556e89afa33eda37309944cd8b0c01.tar.gz kamek-2a5a88dfe5556e89afa33eda37309944cd8b0c01.zip |
More shy guy updates : prototypes complete
Diffstat (limited to 'src/player.cpp')
-rw-r--r-- | src/player.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/player.cpp b/src/player.cpp index d5c54aa..58960cc 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -56,4 +56,23 @@ void setNewActivePhysicsRect(dStageActor_c* actor, Vec* scale) { actor->aPhysics.addToList(); } +void changeActivePhysicsRect(dStageActor_c* actor, float xc, float yc, float xe, float ye) { + ActivePhysics::Info info; + info.xDistToCenter = xc; + info.yDistToCenter = yc; + info.xDistToEdge = xe; + info.yDistToEdge = ye; + + 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(); +} |