Implement FakeObjects (Just poles for now)
This commit is contained in:
@@ -800,6 +800,9 @@ int main(void)
|
||||
sm64_static_surfaces_load(surfaces, surfaces_count);
|
||||
int32_t marioId = sm64_mario_create(-6558, 0, 6464);
|
||||
|
||||
int thing = sm64_fake_object_create(-6558.0f, 0.0f, 6200.0f, 1);
|
||||
sm64_fake_object_set_hitbox(thing, 32.0f, 800.0f * 2, 800);
|
||||
|
||||
printf("MarioID: %i\n", marioId);
|
||||
free(rom);
|
||||
|
||||
@@ -958,6 +961,7 @@ int main(void)
|
||||
|
||||
tick -= 1.f / 30;
|
||||
sm64_mario_tick(marioId, &marioInputs, &marioState, &marioGeometry);
|
||||
sm64_fake_object_tick(thing);
|
||||
|
||||
memcpy(currPos, marioState.position, sizeof(currPos));
|
||||
memcpy(currGeoPos, marioGeometry.position, sizeof(currGeoPos));
|
||||
|
||||
Reference in New Issue
Block a user