dankmememachine
✅ Math problem related to drawing a line renderer relative to an object in Unity
Just to be clear again, this script shows an indicator of the trajectory that the object will take upon release of the mouse. But wherever you drag from the origin will now always be the player and the angle will always be relative to the object. If I drag under the object, the red line goes upwards in a straight line, if I drag downwards from 100 units to the right and 100 units high relative to the object, the red line goes upwards in a straight line.
4 replies
✅ Math problem related to drawing a line renderer relative to an object in Unity
Whelp, Chat gpt4 is pretty neat, here is a solution I made by modding this script and consulting with the robot: https://hatebin.com/nznqdqzsrs
4 replies
❔ How would I call a method created as a top level statement outside of the initial file?
right that works, i was trying to create a code golf solution and wanted to keep the file at a minimum lines, i could not find a way to make that method accessible by another script in the shortest form that I first provided
19 replies
❔ How would I call a method created as a top level statement outside of the initial file?
I found a solution by refactoring the code I believe, it was changed since the original question. I was able to call by using a partial program class like so:
19 replies
❔ How to get specific fields from a Http GET request
Thank you for your help @Angius and @Axiss I'll take a look at optimizing my code and working further on this, I might post a question when it is finalized but I think this is about as much info as I need to continue. Sorry for not knowing much lmao
208 replies
❔ How to get specific fields from a Http GET request
I guess it might be hard to really request multiple of the same GET anyway, since I want to basically call one request, get an item from that category, then run the script again with a different request of category
208 replies
❔ How to get specific fields from a Http GET request
That I am unsure of, is there a way to test it? The api seems pretty barebones: https://rapidapi.com/apidojo/api/hm-hennes-mauritz/
208 replies