« first day (3494 days earlier)      last day (1524 days later) » 

7:11 AM
Hello!
I want object to rotate from A angle to B angle
	float startAngle = -135;
	float endAngle = -45;
	for (float i = degToRad(startAngle);i<degToRad(-45) ; ++i)
	{
		m_body->SetTransform(m_body->GetPosition(), degToRad(i));
	}
This doesnt work. What am i doing wrong?
What direction should i think?
 
8:08 AM
rotate instantly or gradually?
I assume that you want to rotate gradually
the problem is that your program doesn't pause to display the rotated object
there is a coroutine solution where you write yield return null to wait one frame and a solution where you apply a small change in the update function
 
 
2 hours later…
user92578
10:28 AM
@trollingchar Unity solution is not terribly useful for a C++ program
 
oh, my bad
 
 
3 hours later…
1:57 PM
They'll have coroutines in c++20
 
2:43 PM
I wonder if their going to discount / refund GDC tickets given all the coronavirus pull outs.
 
nwp
Sounds like a big no in the article considering that they'll just move to streaming. Then again may as well not do a conference.
 
Yeah, but if that's not what you paid for, I could understand it generating some strong negative reactions. Most everyone I've talked to in says the real value is in attending is stuff like meeting people, networking & impromptu discussions that happen organically around the planned events. Not sure that'll migrate to stream.
Well, maybe if they have some rent a drone option. You could VR into a drone & talk with others who've done the same. What could possibly go wrong with that?
 
nwp
That would be awesome. Combine with a VR headset and start puking from motion sickness immediately.
 
2:58 PM
And drone collisions. So we'd have to bill for repair insurance too. Smells like a cyberpunk money maker to me.
I have a friend who dabbles in the drone scene - last time I asked about VR hookup he said the latency is a deal breaker. Of course that was a year or two ago, maybe things have progressed.
 
nwp
Latency is super tricky to get down. But who knows. Maybe there are ways.
 
Yeah, a fair bit of everyday tech we have now was once science fiction / speculation.
 
latency is a frickin nightmare
damned speed of light shit
 
 
2 hours later…
4:48 PM
Math?
What's this guy doing?
106
A: How to determine if a point is in a 2D triangle?

andreasdrI agree with Andreas Brinck, barycentric coordinates are very convenient for this task. Note that there is no need to solve an equation system every time: just evaluate the analytical solution. Using Andreas' notation, the solution is: s = 1/(2*Area)*(p0y*p2x - p0x*p2y + (p2y - p0y)*px + (p0x - ...

What are"px" and "py"? p0y and so on make sense, but these two don't.
 
I think you were correct with your first statement. Math
 
And the help with it?
 
px and py are the point
p0..p2 is the triangle
 
Ha! Thank you.
 
user92578
5:19 PM
@Vaillancourt Have you looked into these? Can we do similar stuff to Unity with it? That would be really cool
 
@Tyyppi_77 not thoroughly, yet, no, but I understand that it is the intention. Yes, it would be!
 
user92578
Modern C++'s threading is the thing about standard library I miss the most at work
 
@Krangogram I find myself unable to help you today, due to a situation out of my control.
 
user92578
Like promises, futures and the works are so cool and easy to use compared to our class MyTask : public ITask approach
 
I wish I could use those!
 
user92578
5:35 PM
Looks like Krangogram's issues are the usual C++ value semantic issues
 
10:49 PM
@Vaillancourt No problem mate. I never expect any help whatsoever, please never feel any pressure from my side to fix my problems. I'm just coding for fun anyway really. @Tyyppi_77I just saw your message about my use of the std::vector and should use <unique_ptr>. I'd have never thought of that , so im keenly getting started trying that out. Thanks again all for your help
 

« first day (3494 days earlier)      last day (1524 days later) »