≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Value calculation problem
Posted by:
(you are not logged in)
Enter the missing letter in: "Inter?ational"
(you are not logged in)
Text:
[quote][b]dekon_17[/b] wrote: Calculating rotation of character in radians gives me "-nan(ind)" when I move without using mouse look. It only happens once in a run (from what I experienced), but it is annoying and straight up bad. Thing is, it only returns such value from "Math.acos" part, whole thing without it gives normal number instead of this. Why can this happen? Here's how this variable looks: [code]var rawX = Math.acos ((t1.x*t2.x + t1.y*t2.y + t1.z*t2.z) / (Math.sqrt (t1.x*t1.x + t1.y*t1.y + t1.z*t1.z) * Math.sqrt (t2.x*t2.x + t2.y*t2.y + t2.z*t2.z)));[/code][/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