Answered step by step
Verified Expert Solution
Question
1 Approved Answer
So i ' m working on a 2 D game so far I have gotta the screen size from camera, gotten the size of my
So im working on a D game so far I have gotta the screen size from camera, gotten the size of my sprite and made the sprite go off in a direction at a certain speed how do I now work with collisions using those values, check for collision with the wall in Update Respond to collisions by moving the entity out of the wall and changing the velocity as discussed in the video above. Im not sure what to code is it my sprites postion and then the walls position what does that look like?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started