Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Feature requests and bug reports
[BUG] camera rotation without direction

elmigo
Registered User
Quote
2018-12-25 01:46:15

have 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);
}
}


this.Object is active camera with one child
when rotate camera
child get camera rotation
but camera's lookAt position dont change

🔎︎



elmigo
Registered User
Quote
2018-12-25 12:35:21

a, understood
different types of camera require different reaction to rotations and moves

sorry, remove theme please


xanimalkingx
Registered User
Quote
2018-12-25 17:40:37

ccbGetMousePosX() and ccbGetMousePosY() is always 0 when in first person camera mode.


elmigo
Registered User
Quote
2018-12-25 18:54:09

this is default cam with my own behaviour


elmigo
Registered User
Quote
2018-12-27 04:24:49

closed, please remove


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Interna?ional" (you are not logged in)


Text:

 

  

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