jakegreenwood Posted March 14, 2017 Share Posted March 14, 2017 Hi there, Ive been picking up the babylon framework over the past couple of weeks but this one has really stumped me. All i'm trying to do is rotate the CSG's 45degs about the y axis. So the result looks like a 'X' rather than a '+' I can move one bar or the other into place but as soon as i apply a rotation to both they revert to the original 'plus' position. http://www.babylonjs-playground.com/#14TLJG#1 Im trying to rotate the CSG rather than the resulting mesh because I need the y axis to = 0 for the roll over effect. Any help would be really appreciated! Cheers, Jake. Quote Link to comment Share on other sites More sharing options...
JohnK Posted March 14, 2017 Share Posted March 14, 2017 Hi and welcome, hope you have a good time with BJS and of course CSG and the forum. Is this anything like what you are after? http://www.babylonjs-playground.com/#14TLJG#2 GameMonetize 1 Quote Link to comment Share on other sites More sharing options...
jakegreenwood Posted March 15, 2017 Author Share Posted March 15, 2017 @JohnK Almost, so the 'a' CSG now has a rotation on it in your sketch and is in the correct position. I would like to rotate the 'b' CSG by the same amount as well. But when I give it *any* rotation at all both rotations seem to be ignored and it just produces the '+' shape again rather than the desired 'X' Does that make sense? This is what i'd like to achieve. I did this by just rotating the camera, but that isn't really a solution because it interferes with the roll over effect, and id really like to understand a bit more about the CSG problem as well. Thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.