Change bounds.position and size

Hello,

I change the position of the model => Vector3 position = { 0.0f, 0.0f, 0.0f }; to Vector3 position = { 50.0f, 0.0f, 0.0f };

Bounds are calculated from the original size of the model.

I try to put this, float Scale = 1.0f; bounds.min = Vector3Scale(bounds.min, Scale); bounds.max = Vector3Scale(bounds.max, Scale);

but end up with lot of errors.

How can I change the position and the size of bounds to adapt the new position of the model ?

Thanks :)


Edited by clapclem on

We need more information if you want us to be able to help you.

Are you following handmade hero ? On which day are you ? Do you use Casey's code or your own ? What code did you modify ? Can you provide the modified code ? What do you mean by "lot of errors" ? Do you mean the program doesn't compile ? Do you mean it crashed when you run it ? Do you mean the result is not what you expect ?

No, im still new here, i just post new forum in raylib with more details about the code


Replying to mrmixer (#27102)