diff options
| author | Crydsch Cube <[email protected]> | 2023-02-14 17:47:21 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-02-14 17:47:21 +0100 |
| commit | 73989a49817225f11f547d270598e93745bf7df0 (patch) | |
| tree | c5ab826343e7b131c1e3733924156add0d445dbc /examples/models/models_loading_gltf.c | |
| parent | f1bcabcc3799df741d54593980ac06afe2e0f081 (diff) | |
| download | raylib-73989a49817225f11f547d270598e93745bf7df0.tar.gz raylib-73989a49817225f11f547d270598e93745bf7df0.zip | |
WIP rcamera redesign vector (#2563)
* core functionality CAMERA_FREE
* fix example
* add remaining camera modes
* add view bobbing
* view bobbing
* catch curser in SetCameraMode
* adjust examples
* fix compilation on linux
* fix example text_draw_3d
* actually fix text_draw_3d
* Updated camera API
* Improve Vector3RotateByAxisAngle() function
* remove camera.mode dependency from low-level functions
* remove camera.mode from struct
* fixes after rebase
* adjust examples for new UpdateCamera function
* adjust example models_loading_m3d
---------
Co-authored-by: Ray <[email protected]>
Diffstat (limited to 'examples/models/models_loading_gltf.c')
| -rw-r--r-- | examples/models/models_loading_gltf.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/examples/models/models_loading_gltf.c b/examples/models/models_loading_gltf.c index 92b517a1..0c907071 100644 --- a/examples/models/models_loading_gltf.c +++ b/examples/models/models_loading_gltf.c @@ -51,8 +51,6 @@ int main(void) Vector3 position = { 0.0f, 0.0f, 0.0f }; // Set model position - SetCameraMode(camera, CAMERA_FREE); // Set free camera mode - SetTargetFPS(60); // Set our game to run at 60 frames-per-second //-------------------------------------------------------------------------------------- @@ -61,6 +59,7 @@ int main(void) { // Update //---------------------------------------------------------------------------------- + UpdateCamera(&camera, CAMERA_THIRD_PERSON); // Select current animation if (IsKeyPressed(KEY_UP)) animIndex = (animIndex + 1)%animsCount; else if (IsKeyPressed(KEY_DOWN)) animIndex = (animIndex + animsCount - 1)%animsCount; @@ -69,9 +68,6 @@ int main(void) ModelAnimation anim = modelAnimations[animIndex]; animCurrentFrame = (animCurrentFrame + 1)%anim.frameCount; UpdateModelAnimation(model, anim, animCurrentFrame); - - // Update camera - UpdateCamera(&camera); //---------------------------------------------------------------------------------- // Draw |
