≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Strange bug about if statement
Posted by:
(you are not logged in)
Enter the missing letter in: "Internat?onal"
(you are not logged in)
Text:
[quote][b]Alireza[/b] wrote: I made a cubeMesh. And then I set it's X Rotation to 0.1 After getting its rotation variable, I used this code: If ( rot .x == 0.1 ) { ....do some thing .... } And I tested it. It worked well on Windows but did not work on Android. Then I used this code instead and it worked !!! on Android: If ( rot .x > 0.09 && rot .x < 0.11 ) { ....do some thing .... } It should be noted that in larger values, for example, if I had initially X rotation = 1, it would work fine. .It's so weird. Whatever I thought, I could not find a logical reason for it[/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