≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
[BUG] camera rotation without direction
Posted by:
(you are not logged in)
Enter the missing letter in: "I?ternational"
(you are not logged in)
Text:
[quote][b]elmigo[/b] wrote: have code [code] onAnimate(node, timeMs) { if (this.lmbDown) { var mpx = ccbGetMousePosX(); var rot = ccbGetSceneNodeProperty(this.Object, 'Rotation'); if (mpx < this.mpx) { // turn left rot.y -= timeDiff/15; } else if (mpx > this.mpx) { // turn right rot.y += timeDiff/15; } this.mpx = mpx; ccbSetSceneNodeProperty(this.Object, 'Rotation', rot); } } [/code] this.Object is active camera with one child when rotate camera child get camera rotation but camera's lookAt position dont change [img]http://joxi.ru/MAjqwRaS4QBY52.jpg[/img][/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