Search found 5 matches

by Actravaz
Sun May 22, 2022 8:01 pm
Forum: Support and Development
Topic: Collision teleports rectangle to corner
Replies: 8
Views: 2505

Re: Collision teleports rectangle to corner

Thanks m8 this helped me a lot.
by Actravaz
Sun May 22, 2022 6:40 pm
Forum: Support and Development
Topic: Collision teleports rectangle to corner
Replies: 8
Views: 2505

Re: Collision teleports rectangle to corner

So your example checks if the box is both penetrating and nonpenetrating and then uses the size to return it outside? And for me only giving a snippet, I already knew that everything else worked because it was mostly spawning and instance commands and for velocity it worked fine because in a previou...
by Actravaz
Sun May 22, 2022 2:46 pm
Forum: Support and Development
Topic: Collision teleports rectangle to corner
Replies: 8
Views: 2505

Re: Collision teleports rectangle to corner

Alright alright, sheesh I guess i'll just send the file i just wanted an answer to what in my collision script caused this.
Physics.love
(1.43 KiB) Downloaded 60 times
wasd to move and you have to be actively moving to the corner without touching the sides (sorry about how hard it is).
by Actravaz
Sun May 22, 2022 1:46 pm
Forum: Support and Development
Topic: Collision teleports rectangle to corner
Replies: 8
Views: 2505

Re: Collision teleports rectangle to corner

Well the problem is that this IS most of my code already. i just started this project awhile ago so the only different code here is me executing functions.EDIT: i also meant to say that everything else works
by Actravaz
Sat May 21, 2022 6:49 pm
Forum: Support and Development
Topic: Collision teleports rectangle to corner
Replies: 8
Views: 2505

Collision teleports rectangle to corner

Hello folks. I'm trying to make a physics engine but whenever a rectangle hits the corner of another rectangle, it teleports to the other end of the hit rectangle. I'm not sure if it's anything wrong with my code or what. function collide(object) for i,v in ipairs(workspace) do if CheckCollision(obj...