Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 06 Jul 2005
Offline Last Active Feb 13 2016 05:37 PM

Posts I've Made

In Topic: Find vector normal to line segment

26 March 2015 - 03:11 PM

Thanks a lot for the explanations!

In Topic: STL C++: iterator issue

02 August 2014 - 02:51 PM

Thanks a lot for all the precious hints!

Changed the XCode build setting as suggested by jwezorek and using lambda functions.

In Topic: STL C++: iterator issue

01 August 2014 - 03:26 AM

Hi Chris, can't do that since I need to compile on XCode too...

In Topic: STL C++: iterator issue

31 July 2014 - 05:50 PM

I think I sorted it out:

 struct findNodeUUID2 {
	findNodeUUID2(int i) : id(i) { }
	bool operator()(const MyItem *obj) { return (obj->test==id); }
	int id;

In Topic: "Preventing" collision detection

19 November 2012 - 11:41 AM

In your function, t is the distance between point p and point c (assuming dir is normalised)

So, changing "if (t > 0.00001)" to "if (t > 1.0)" would make the function ignore collisions that occur within one unit of the origin of the ray.

Thank you very much, that was successful.