cassius Posted February 25, 2013 Share Posted February 25, 2013 Been looking thru le 3 docs but can;t find EntityDistance.I use this a lot in le2.Is there an alternative? Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++ Link to comment Share on other sites More sharing options...
macklebee Posted February 26, 2013 Share Posted February 26, 2013 if its not there just create it yourself: http://www.leadwerks.com/werkspace/topic/5188-distance-to-picked-point/#entry45581 Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
Josh Posted February 26, 2013 Share Posted February 26, 2013 You can do this: Vec3 position = entity->GetPosition(true); float dist = position.DistanceToPoint(otherentity->GetPosition(true)); http://www.leadwerks.com/werkspace/page/documentation/_/command-reference/vec3/vec3distancetopoint-r403 But yeah, Entity::DistanceToEntity() would make a nice addition. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.