Search found 5 matches
- Sun May 22, 2022 8:01 pm
- Forum: Support and Development
- Topic: Collision teleports rectangle to corner
- Replies: 8
- Views: 2878
Re: Collision teleports rectangle to corner
Thanks m8 this helped me a lot.
- Sun May 22, 2022 6:40 pm
- Forum: Support and Development
- Topic: Collision teleports rectangle to corner
- Replies: 8
- Views: 2878
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...
- Sun May 22, 2022 2:46 pm
- Forum: Support and Development
- Topic: Collision teleports rectangle to corner
- Replies: 8
- Views: 2878
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.
wasd to move and you have to be actively moving to the corner without touching the sides (sorry about how hard it is).- Sun May 22, 2022 1:46 pm
- Forum: Support and Development
- Topic: Collision teleports rectangle to corner
- Replies: 8
- Views: 2878
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
- Sat May 21, 2022 6:49 pm
- Forum: Support and Development
- Topic: Collision teleports rectangle to corner
- Replies: 8
- Views: 2878
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...