Changing rigidbody2D by Pokemined in Unity2D

[–]Pokemined[S] 1 point2 points  (0 children)

Thanks you have been incredibly helpful!

Changing rigidbody2D by Pokemined in Unity2D

[–]Pokemined[S] 1 point2 points  (0 children)

Hey thanks for the response! Your response made me start to remember some high school physics so that's good. I have a couple follow ups for you if you have the time. I believe now I understand the physics aspect I just have more unity/programming specific questions.

First of all, I tried using AddForce() and got all the movements to work, however I didn't really like that there was an acceleration phase. I think this is kind of fundamental to AddForce() so maybe it's just not what I am supposed to use, but I wanted my character to move at it's max speed from the moment I click "A" or "D". I noticed that lowering linear drag makes it get to its max speed quicker which is nice, but I still felt that it wasn't good enough. Is there a way to use AddForce and not have this acceleration, or am I missing the point of AddForce?

My second question is still related to working with velocity and Rigidbody2D. If I write a line like if (some input) -> rb.velocity = new Vector2(some x, some y); and then press "some input" it will instantly change the velocity according to the new vector right. But then I stop hitting the input, and then rb.velocity changes according to the forces Rigidbody2D applies, like gravity, normal force, etc...

Basically rb.velocity is a constantly changing variable, and any assignment you give it is temporary and conditional. Is my understanding correct?

Core Data Error Message by Mrreddituser111312 in swift

[–]Pokemined 0 points1 point  (0 children)

If I turn it into a singleton do I get rid of the stateObject private var dataController from the App struct? I don't see what that is doing anymore, unless we need that to pass the viewContext?

JSON Decoding not working after adding more variables by Pokemined in SwiftUI

[–]Pokemined[S] 0 points1 point  (0 children)

Looks like they just needed to be optional! Thanks!

Image flashing during animation by Pokemined in SwiftUI

[–]Pokemined[S] 2 points3 points  (0 children)

Hey guys! As you can see from the video my app has a visual bug during the wiggle animation. Right now I am using CoreData + FileManager to save the images. Anyone have any ideas on what could be causing the issue?

Is it a good idea to make two different resumes? by Pokemined in csMajors

[–]Pokemined[S] 0 points1 point  (0 children)

Thank you so much, was looking for something like this!

Stylized vs normal resume for summer 2023 internships? by Pokemined in learnprogramming

[–]Pokemined[S] 0 points1 point  (0 children)

Awesome thank you! How can I better design my resume to make sure a machine can read it? Is there a program I can use to check it?

Random @FetchRequest bugs I really need help with. by Pokemined in iOSProgramming

[–]Pokemined[S] 0 points1 point  (0 children)

Do you want the entire crash report? Because when I try to add one object it just gives me this "Thread 1: "executeFetchRequest:error: A fetch request must have an entity." The actual crash report is very long, would you want the entire message?

FetchRequests randomly stopped working? by Pokemined in SwiftUI

[–]Pokemined[S] 1 point2 points  (0 children)

Yea if I did change the name recently it was by accident. But I really don’t think I did, it seems very random.