u/chopsueys

🔥 Hot ▲ 35.8k r/IaCaca+2 crossposts

Using ai to read grad names at graduation

u/Chapple69 — 1 hour ago
▲ 2 r/unity

Should I get used to using the new Input System?

Hi, I’m new to Unity and I’m trying to make a Breakout-style game to practice.

I’m a bit confused because I just wanted to get the mouse coordinates in Start() using Input.mousePosition, but I saw that I got an error because my project settings are using the new system.

Since I don’t want to use an obsolete system, and I also don’t want to have to learn two different systems when there are already so many things to remember, I looked again into the current proper way to get the mouse coordinates. I found Mouse.current.position.ReadValue().

Well, first of all, it’s much longer and less straightforward, which was my first small disappointment. Then I tested my script and saw that my mouse position variable wasn’t initialized in Start().

So I looked it up again, and then I learned that this might no longer be possible with the new system?

So if, like here, I need to initialize my variable with the mouse position, am I forced to do something like declaring a new boolean variable to use it in Update() and then disabling it so it doesn’t keep getting initialized every frame?

edit : It's not just Start that isn't working, it's actually even the first frame of the update... even using a boolean doesn't fix the problem, I have to wait until the second frame to initialize this variable.

reddit.com
u/chopsueys — 1 day ago

If I set “render face: both” then both faces receive the same lighting.
I'd like it to work like it does in Blender

Edit: I think it's working fine now, thanks
Edit 2: I just broke my shader while editing something else, I didn't even know that was possible

reddit.com
u/chopsueys — 13 days ago
▲ 6 r/unity

I’m a beginner of course, but I’ve been trying to do this for 3 hours now.
I added a rigid body and a physics material… I can easily get realistic bounces for something like a fruit, for example, but for a ball there’s always something off.

If I set the bounce too high, the ball takes too long to reduce the height of its bounces, and then at some point the simulation suddenly stops.
I found the bounce threshold setting, which lets the simulation run longer, but then the ball never stops bouncing. If I lower the bounce value, the first bounces aren’t high enough to match something like a tennis ball.

So I thought, ok, I’ll watch a tutorial… I watched nearly 15 different videos, and not a single person mentioned this problem. Everyone seems fine with having infinite bouncing, sometimes even with video titles like “realistic bounce in Unity”…

Then I thought I’ll ask ChatGPT… it suggested at least 4 or 5 different scripts, but none of them fixed the issue, so I gave up.

So is it really that hard to make a simple bouncing ball? It’s something I can do in 2 minutes in Blender.

https://streamable.com/esbust

u/chopsueys — 15 days ago
▲ 171 r/simracing

I set up this fan, but it won't be enough for my back. Do you have any tips for keeping your back cool?

u/chopsueys — 22 days ago

débutant*
Je suis entrains d'apprendre le c#, avant j'étais habitué à utiliser notepad++ pour des petits projets basiques en python.
J'imagine que vous si vous avez un niveau assez avancé et que vous avez pris l'habitude vous tirez probablement parti à fond des possibilités de VS pour pouvoir gagner du temps mais dans un processus d’apprentissage je trouve ça très perturbant d'avoir autant d'automatisations et de choses cachés.

Pour les automatisations, j'ai passé des heures à essayer de trouver les paramètres pour désactiver tous ces trucs qui m'agressent dès que je commence à écrire quelque chose, les )]} qui se referment tout seul sans me demander mon avis, les propositions qui se valident toute seule en appuyant sur espace, le formatage forcé, tu copie colle une ligne et finalement il te la place ailleurs.. une fenêtre qui s'ouvre pour te dire qu'il y a une erreur alors que tu n'a pas fini d'écrire ta ligne donc logique.. L'ia qui t'ajoute des lignes par prévision sans te laisser le temps d'essayer de te rappeler par toi même comment on écrit ça donc tu retiens rien.
J'ai réussi à virer la plupart des trucs mais il en reste encore un peu.

Pour les choses cachés ce qui ma perturbé au début c'est de ne pas voir la class program et le Main.. donc très bizarre de croire que ça peut fonctionner sans alors que notre cour nous dit le contraire..
Tu commences à créer une class et là tu as une erreur car tu peux pas déclarer une class dans une methode sauf que tu ne sais même pas que tu es dans le Main vue qu'il est caché.
J'ai réussit à trouver comment créer un projet qui ne cache pas ça puis je me suis rendu compte qu'il y avait en fait d'autres trucs encore cachés comme les using system etc
Certains mots semblent aussi avoir des propriétés cachés par exemple j'avais créé un enum Direction dans une autre class pour m'entrainer.
Et bien écrire manuellement "Direction" dans le Main sans nommer la class avant n'était pas reconnu (normal) par contre si je copie colle "Direction" depuis ma class là c'est reconnu comme si j'avais écrit MaClass.Direction alors que c'est littéralement le même mot que j'ai écrit manuellement, donc là encore ce "Direction" copié collé avait une propriété caché.

C'est normal que je ressente autant de frustration en utilisant VS au début ?

reddit.com
u/chopsueys — 23 days ago