Jump to content

  • Log In with Google      Sign In   
  • Create Account

Alessandro

Member Since 06 Jul 2005
Offline Last Active Aug 26 2014 07:06 AM

Posts I've Made

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.

In Topic: "Preventing" collision detection

15 November 2012 - 12:42 PM

To get the distance between two points(p and c) just treat them as vectors and you get: distance = ||c-p||

are you trying to prevent collision detection like the post title says or are you trying to stop actors before a collision occurs ?


Actually the 2nd option would be perhaps a better option for my needs.

PARTNERS