Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - PhantOS

Pages: [1] 2 3 4 5 6 ... 17
1
Off Topic / math collision problem.
« on: February 19, 2019, 11:56:32 AM »
kay so I'm making a game and you can drag objects around. when you drag an object two variables are stored: the position of the object at the end of the last frame (lastPos) and the current position at the start of this frame (currPos). with these two variables I have a vector for which the object is traveling during the current frame.

my collision works like this: objects have a collider, each with a set number of corners. the object you're dragging fires the aforementioned vector from each corner along the same direction to detect any collision. when it finds one, it gets the distance between that specific collision corner and the point hit, and updates the movement vector so that its distance is now shortened to the collision vector, meaning that the object will be unable to move past the collision point.

the problem: upon this frame, the two objects are now touching each other and are side by side. the problem is that when I try to drag the object again, it will no longer move, because the corners that are colliding with the object are permanently stuck inside that object's collision. I cannot cast a new movement vector going away from the object because the start point of the vector is 'inside' a collider already. I've tried adding a small amount of easing where the start of the vector is actually like 0.01% ahead of where its supposed to be, but that just results in objects getting stuck inside each other when I drag them too fast.



the green Xs are points of collision detected. the magenta lines are the vectors that scan for collisions. what I want is for the fourth(bottom right) scenario to not happen. I want the box to move freely from its original collision away from it without colliding directly at the source of the vector

in this problem, I don't have any low-level access to the collision routines or the colliders, they are handled automatically by the game engine (unity). there is no built in friction fields I can use, i'd have to make my own using vector math. so I need to figure out a solution that involves modifying the starting vector in some way. thing is idk how. someone with knowledge on this stuff please help me or pass this problem along to your smart friends

2
Off Topic / Please do not de rail the thread.
« on: February 13, 2019, 06:50:07 PM »
I dont like fyrrts

3
Off Topic / tax returns
« on: February 11, 2019, 01:53:28 PM »
i just filed them and im gonna be getting $1400 back thru direct deposit... this is so sweet its like i dont even pay taxes in the first place

4
Games / Phoenix Point - Early access
« on: January 31, 2019, 10:25:17 PM »

5
Off Topic / kingdom - medieval korean zombies
« on: January 26, 2019, 12:19:51 AM »


i just finished watching it and its really good. you should watch it too

6
Off Topic / i sharted
« on: January 22, 2019, 06:55:45 PM »
yeah so as you all know it's super brick outside and I was walking home In the cold and I can't feel my ass... somewhere along the walk I decided to fart and didn't think much of it ... But I just got home and realized I loving stuffted myself. ... Bruh what the forget

Is this normal

7
Drama / figure - ?
« on: January 07, 2019, 09:33:06 PM »
im at a loss of words

8
Off Topic / welcome to 2019
« on: December 31, 2018, 11:34:31 PM »
only people who exist in 2019 are allowed to post here. all the 2018 cigarettes to the west cannot exist in this thread

9
Off Topic / college brothers be like
« on: October 17, 2018, 09:06:49 PM »
haha imagine what it'd be like to not have debt

10
Off Topic / youtube is down
« on: October 16, 2018, 08:18:02 PM »
master matthew is probably celebrating

11
bro wtf? they probably got innocent brothers awaiting their trial date and people locked up for misdemeanors in that bih and they just like na let's let them all drown

this some next level hurricane relief stuff

12
Off Topic / [WARNING] sunny non-hurricane weather alert outside NC and SC
« on: September 11, 2018, 09:34:48 PM »
Guys if you live outside of north or south Carolina please enjoy the wonderful weather. Sunlight is great for your skin and you should enjoy as much of it ASAP. Please repost this for anyone living outside north and south Carolina. Please stay happy

13
Off Topic / [important] drake and meek make up, historic 4 year beef ends
« on: September 10, 2018, 02:32:26 PM »
this marks the dawn of a new era of peace and prosperity for the rap game

14
https://www.youtube.com/watch?v=3ym3JGvZWt8

CNN host: TRUMP GETS HIS NEWS FROM FOX!

Also CNN host: Trump lyed about the wiretaps from obama!

Where else is trump going to get his news from? Lying CNN?

Trump proved right again about the wiretaps and the media just loves to play the coverup.

15
Off Topic / #freethugger - young thug charged with 8 gun felonies
« on: September 06, 2018, 08:26:38 PM »
WTFFFFFFF

Pages: [1] 2 3 4 5 6 ... 17