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

Registered User
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;}

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)




Forum Codes

Feature Code
Link [url] [/url]
Bold [b]bold text[/b]
Image [img][/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]



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