Hack Forums
[.NET] Simulation of Collisions in 2D [Mass, Friction and Velocity] - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [.NET] Simulation of Collisions in 2D [Mass, Friction and Velocity] (/showthread.php?tid=5811341)



Simulation of Collisions in 2D [Mass, Friction and Velocity] - Barret - Mar 14, 2018


[img]http://d2vlcm61l7u1fs.cloudfront.net/media%2F690%2F690b5483-0775-4313-94ee-bb8b17cc7dbf%2Fphp3JxlKJ.png[/img]
Following example demonstrates the simulation of collision detection of two or more objects and how they react on impact using mass, friction and velocity vectors.



Github:
https://gist.github.com/TheBarret/f54d69f2e9760799eaf533aa8883ebff


RE: Simulation of Collisions in 2D [Mass, Friction and Velocity] - EdwardSn0wdent - Mar 14, 2018

You really do have a weird desire for strange projects. It's a refreshing change. I'm just about to look at your code. Just one thing. Learn whata space bar is mate. Stacked lines of code with no xml documentation :(


There are lots of coding inconsistencies in your code. The way you write changes. A programmer should only have the One way he/she actually writes. As a whole, there is not much we can say here as it's just a class with no insight. Your naming can do with alot of work. be more use seeing a working example to see not class as is.

Whats with all your parentheses?


RE: Simulation of Collisions in 2D [Mass, Friction and Velocity] - Ninja - Mar 14, 2018

(Mar 14, 2018 11:10 AM)EdwardSn0wdent Wrote:  You really do have a weird desire for strange projects. It's a refreshing change. I'm just about to look at your code. Just one thing. Learn whata space bar is mate. Stacked lines of code with no xml documentation :(

Space bar? You mean return.


RE: Simulation of Collisions in 2D [Mass, Friction and Velocity] - EdwardSn0wdent - Mar 14, 2018

I will give you that. To much oxycodone(medical not a junkie) been typing words, I did not mean for the last week.


RE: Simulation of Collisions in 2D [Mass, Friction and Velocity] - Ninja - Mar 14, 2018

(Mar 14, 2018 11:20 AM)EdwardSn0wdent Wrote:  I will give you that. To much oxycodone(medical not a junkie) been typing words, I did not mean for the last week.

What do you mean you did not mean for the last week? Are you saying you regret harassing me?


RE: Simulation of Collisions in 2D [Mass, Friction and Velocity] - EdwardSn0wdent - Mar 14, 2018

Words as above. keep typing word's i am not meant to mean. It's a side effect of the drugs i am on. Last 4 weeks in the hospital, 2 and a half you will be happy was intensive care. Yeh, guess was hassling you a bit. I don't regret anything on the internet. It's not real to my life. But I am not going to follow you anymore.

You might dislike it or not, i am older than you. More experience. You seem to put more effort in than most here. But you seem to have a chip on your shoulder. 4 years is nothing. I can see you being a good member. But you need to stop picking or to be kind to. Why not show always your helpful side. Even if you googled it for them. Tell them. Thats a great feature of a programmer. You are showing them they could of made the effort.

I have never said you do not know anything. But you need to realize you are still very new. You show you are keen. Now show a better side of you.

I will leave it as that. Internet arguing is boring. Now is an oppertunity to see if you make the same regard to me.


RE: Simulation of Collisions in 2D [Mass, Friction and Velocity] - HFDone - Mar 14, 2018

(Mar 14, 2018 01:25 PM)EdwardSn0wdent Wrote:  Words as above. keep typing word's i am not meant to mean. It's a side effect of the drugs i am on. Last 4 weeks in the hospital, 2 and a half you will be happy was intensive care. Yeh, guess was hassling you a bit. I don't regret anything on the internet. It's not real to my life. But I am not going to follow you anymore.

You might dislike it or not, i am older than you. More experience. You seem to put more effort in than most here. But you seem to have a chip on your shoulder. 4 years is nothing. I can see you being a good member. But you need to stop picking or to be kind to. Why not show always your helpful side. Even if you googled it for them. Tell them. Thats a great feature of a programmer. You are showing them they could of made the effort.

I have never said you do not know anything. But you need to realize you are still very new. You show you are keen. Now show a better side of you.

I will leave it as that. Internet arguing is boring. Now is an oppertunity to see if you make the same regard to me.

🤣 ^^ side effect of the drugs <> ident