ambiera home ambiera home

Ambiera Forum

Discussions, Help and Support.

Create a new account, Search, or Login:
Name:  Password:    
Ambiera Forum > CopperCube > Feature requests and bug reports
[BUG] camera rotation without direction
Author Text

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: "Internationa?" (you are not logged in)


Text:

 

  

Forum 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


   





Software: Ambiera Light Forum. © 2008-2018 Nikolaus Gebhardt, Ambiera e.U.