You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a better way to get tower.meshed[m] or tower.transform in SmallBASIC or should it also be done with a helper function which will return the data or which just gets the model as parameter and then do the magic in c?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I extended the raylib plugin a little bit to run the shader_basic_lighting example (https://www.raylib.com/examples/shaders/loader.html?name=shaders_basic_lighting). The only part, where I struggled a little bit was the following command in the example:
Here I wrote a helper c-function to set the shader.
The example works fine now. I am just not sure, if this is a good way to do it.
Since I need collision detection with a mesh I followed the example mesh.picking (https://www.raylib.com/examples/models/loader.html?name=models_mesh_picking)
here is now the following line:
tower is a model.
Is there a better way to get tower.meshed[m] or tower.transform in SmallBASIC or should it also be done with a helper function which will return the data or which just gets the model as parameter and then do the magic in c?
Beta Was this translation helpful? Give feedback.
All reactions