summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--public/assets/javascripts/rectangles/engine/sculpture/types/_object.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/public/assets/javascripts/rectangles/engine/sculpture/types/_object.js b/public/assets/javascripts/rectangles/engine/sculpture/types/_object.js
index 48fd96a..489a6a1 100644
--- a/public/assets/javascripts/rectangles/engine/sculpture/types/_object.js
+++ b/public/assets/javascripts/rectangles/engine/sculpture/types/_object.js
@@ -53,7 +53,13 @@ Sculpture.types.base = Fiber.extend(function(base){
},
setBillboard: function(val){
this.billboard = val
- },
+ if (this.billboard) {
+ this.mx.rotationY = cam.rotationY
+ }
+ else {
+ this.mx.rotationY = PI/2
+ }
+ },
remove: function(){
if (this.removed) return