Recommended Posts

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.

Share this post


Link to post
Share on other sites

@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!

58c927dd18b42_ScreenShot2017-03-15at11_38_42.png.c29923e4db6cfc817e10afb7a675208c.png

Share this post


Link to post
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.