ambiera home ambiera home

Ambiera Forum

Discussions, Help and Support.

Create a new account, Search, or Login:
Name:  Password:
Ambiera Forum > CopperLicht
Rotating a BillboardSceneNode
Author Text

boxbee
Registered User
Quote
2013-01-12 01:25:57

Is it possible to rotate a BillboardSceneNode? I want to rotate it on the Y-axis depending on where the mouse is. I am trying to get a 2d sprite to rotate 180deg if the mouse is on its left.

This is what I have:
engine.OnAnimate = function() {		
if (IsMouseMoveOnLeft) {player.Rot.Y = 180;}
if (IsMouseMoveOnRight) {player.Rot.Y = 0;}
}



niko
Moderator
Quote
2013-01-12 07:28:04

No, the billboard is specifically there to be always rotated to the camera, that's basically its only feature and probably difficult to make go away. :) You could maybe create a mesh scene node with a plane (= two triangles), and let that one rotate manually.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Int?rnational" (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-2019 Nikolaus Gebhardt, Ambiera e.U.