Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest WME version: WME 1.9.1 (January 1st, 2010) - download

Author Topic: Distance between actor and object?  (Read 2633 times)

0 Members and 1 Guest are viewing this topic.

FogGobbler

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 228
    • View Profile
Distance between actor and object?
« on: February 27, 2009, 01:06:50 PM »

Hi!

Is there a way to find out the distance between the 3D actor and a hotspot-region (GoToObject-Position)?

That could come in quite handy, because then the character could automatically run to an object, if the distance is large.

Oli
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Distance between actor and object?
« Reply #1 on: February 27, 2009, 02:25:24 PM »

Direct distance can be calculated as vector length. As described here: http://forum.dead-code.org/index.php?topic=2808.msg17747#msg17747
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave
 

Page created in 0.025 seconds with 19 queries.