Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


Paradigm Shifter

Member Since 09 Aug 2002
Offline Last Active May 26 2015 02:14 AM

Posts I've Made

In Topic: c++ friend classes

04 March 2015 - 03:04 AM

You would use porsche.Steer(); in the member function PorscheSteer. But Steer is public anyway, so there's no need for it to be a friend to call that function...


In Topic: Barycentric Coordinate Calculation gives divide by zero

10 January 2015 - 03:55 AM

You should remove degenerate triangles from your triangle collision data when you export the data. If you need collision against lines have a separate container for them and do line vs. collision object tests as different functions.

In Topic: constructor for class that contains another class and constructor C++

17 December 2014 - 03:18 AM

Either only initialise w in the t4dpoint class (base class is then default constructed) or call the base class constructor directly

 

t4dpoint<_cType>(_cType a, _cType b, _cType c, _cType d) : t3dpoint<_cType>(a, b, c), w(d) {}

 

should work...

 

EDIT: Which is what Brother Bob said as well. I'm not sure if my template argument is needed for base class constructor, I have it, Brother Bob does not. One or both of us is correct ;)


In Topic: Quicktime Events - why are they so widespread still? A question and a rant.

02 December 2014 - 02:50 AM

I have fond memories of the QTEs in the Shenmue games.  Fixed cutscenes don't really serve as a drop-in replacement for them -- you're out of control of your own character, and can't "lose" in those kinds of circumstances.  For bonus awesomeness, the games had "failure paths", where screwing up a button changed the way the cutscene played out, but didn't necessarily make you restart.

 

I gave up on Shenmue 2 when I had to do a cut scene every time I walked across a plank to climb a building many times in a row... And I never did get to find out where sailors hang out at night.


In Topic: Health bar graphics instead of text

01 December 2014 - 06:19 AM

It should be width * currentHealth / maxHealth anyway? So if your max is 100 and current is 25 it will be 25/100 = 25% full...


PARTNERS