C
C#ScootyScoot

Rectangle intersection not workin

Using the code provided, I've tried the ways I knew to make the tripods remove once they're hit by a bullet. Yet the program does not even register the intersection in the debug console. I need to get the intersection of the bullet and the tripods to work.
T
TheRanger14d ago
$paste
M
MODiX14d ago
If your code is too long, you can post to https://paste.mod.gg/ and copy the link into chat for others to see your shared code!
S
ScootyScoot14d ago
I perhaps know the reason why it doesnt work The code decided to stop updating when trying to implement new changes. I tried to remove some of the commands, but they fired nonetheless when I debugged.
S
SlimStv14d ago
there are couple of reasons on why your Rectangle.intersect may not work for example if you're linearly interpolating them, make sure the result of your speed * t * delta on your interpolator /lerp won't surpass the width / height of the target rectangle you're colliding with think of it similar to frame-skipping Intersect/contains on a Rectangle is just regular method that checks if they're overlapping on static objects(mostly) and they don't do any raycast ahead of them so that's why they can fail in lotta scenarios that said, avoid using intersect/overlap on Rects unless they're static objects.
Want results from more Discord servers?
Add your server
More Posts
Feeding Random into itself - does it "corrupt the randomness"?If I am to reinitialize an instance of System.Random after every .NextDouble() using the return valuUpdate and add to Resource.resx file via code.We are adding localization to our product and want to automate the process of updating the resx fileWinform project saves the Image with a black backgroundIt works perfectly except it creates a black background which isn't shown in the picturebox preview,✅ Theoretical question. MediatR and DTO and onion structureHello, THe following is just theoretical and I do not need any code In the programming world, transfStack overflow exception when closing one formCan't seem to find the issue.. I have a startscreen, and when any key is pressed on startscreen it tAdvice / Guidance on VM application services (Windows Server 2016)Has anyone every come across a virtual machine (3 virtual 2.6Ghz processors, 12GB Ram) where a singlCan anyone help me with the odd prime numbers program?Facing difficulty in college assignment.IndexOutOfRange Leetcode helpHey, having an issue with my leetcode problem. I know that its supposed to be a bitwise XOR operatiovisual studio .net core ironPDFi have problem with export to pdf files. It's works perfectly( create a files and change keyword), bVisual Studio + WPF: "Could Not Load Assembly" despite dlls being available and reference correctThis has been driving me nuts for a day now. It's an intermittent error as had this working fine at how to export datas to json file from mysqlI have datas in mysql I want to move them to a json file. How can I do that?Licensing my programHi, i’m developing a Point Of Sale software and would like to find out possible solutions to manage ✅ Unhandled exception. Cannot print exception string because Exception.ToString() failed.justwhy this error always come in dotnet webapi application version ----- dotnet --version ✅ How to use Dapper with Query ParametersI work a lot with SQL databases such as MySQL, SQLite and PSQL and usually I write my Queries like t✅ transaction in transaction issueI have this error: `The connection is already in a transaction and cannot participate in another trHelp making login function c#Im currently trying to code a login function I have the registration my user is getting saved in thProblems with docker and my app imageI already posted a question that more or less manage to solve but now i have other problem, the thiAttempting to get value from different JSON files with variable keyHello o/ I am attempting to deserilize and obtain the value from a variety of JSON files that contaiHow to display only department fields associated with a selected department in student automationhi, I'm facing a challenge while working on the student automation system. After selecting the deparHelp with DiscordGameSDK in a C# project (no Unity)I am currently trying to develop a plugin for a Unity game. For this I created a C# project, where I