Horde3D
http://horde3d.org/forums/

Distance between 2 Entities
http://horde3d.org/forums/viewtopic.php?f=2&t=2252
Page 1 of 1

Author:  rosenkrf [ 26.03.2014, 18:56 ]
Post subject:  Distance between 2 Entities

Hi there,

I am trying to detect / calculate the distances between two entities. For that, I was using the Pyttagoras calculation from this post: viewtopic.php?p=8468#p8468

Unfortunately, I get a very big result from that calculation, which does not get smaller when moving the objects closer to each other. It seems that it gets smaller when I move one object to the very border of the scene.

Does this method work when I use the return of GameEngine::entityWorldID( "foobar" ) as _entityNode?

Author:  Volker [ 27.03.2014, 22:55 ]
Post subject:  Re: Distance between 2 Entities

How do you get the transformation matrix from your entities? And what are you using exactly for the distance calculation

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/