Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperLicht
Rotation

StasGrof
Guest
Quote
2012-05-14 19:41:40

Hi, it's me again;)
Please, say to me: How change rotation, for example, camera?
This my javascript code of the page:

<script type="text/javascript">
<!--
$("document").ready(function() {
var engine = startCopperLichtFromFile('3darea', 'copperlichtdata/coppercube.ccbjs');
var cam = null;
engine.ingComplete = function()
{
var scene = engine.getScene();
if (scene)
{
cam = scene.getSceneNodeFromName('Camera1');
scene.setRedrawMode(CL3D.Scene.REDRAW_EVERY_FRAME);
}
}
$("body").mousemove(function() {
cubeSceneNode.Rot.X -= 10;
});
engine.handleKeyDown(event);
});
MySceneNode.prototype.render = function(renderer)
{
cam.prototype.render.call(this, renderer);
renderer.setProjection([8,0,9]);
renderer.setView([0,9,7]);
}
-->
</script>



niko
Moderator
Quote
2012-05-15 06:08:02

There camera only uses the target for the look direction, rotation is ignored. See this thread for example: http://www.ambiera.com/forum.php...


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "In?ernational" (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