≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
child node distances from Player
Posted by:
(you are not logged in)
Enter the missing letter in: "Inter?ational"
(you are not logged in)
Text:
[quote][b]Robo[/b] wrote: I just spent the last 3 days trying to work out why my distance checks fail to be consistent and change according to what angle you approach the child node item. The problem was the parent folder being a child itself under a 3D mesh which had a scale adjustment applied outside 1,1,1. Never do that !! - will stuff up the game and make you think the engine is broken. Unchild the parent folder from the 3D mesh and put in the main section by itself. The javascript for distance checks are these: var posdelta = this.LastPosition.substract(currentPos); var dist = Math.sqrt(posdelta.x * posdelta.x + posdelta.z * posdelta.z); or var posdelta = this.LastPosition.substract(currentPos); var dist = posdelta.getLength(); (they both do exactly the same thing). Hope this help someone one-day....driving me crazy these weird bugs...[/quote]
Possible Codes
Feature
Code
Link
[url] www.example.com [/url]
Bold
[b]bold text[/b]
Image
[img]http://www.example.com/image.jpg[/img]
Quote
[quote]quoted text[/quote]
Code
[code]source code[/code]
Emoticons
Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact