Hersir Posted March 27, 2018 Share Posted March 27, 2018 Hi, I saw there are breaking changes in pivot point api, but could not find out what I need to update to use my previous code. This example show pivot update function that uses mesh size to set pivot based on -1 to 1 vector. Worked well for 3.1.1 but not in 3.2.beta3 If that expected result would be glad if I could get some info how to use it in 3.2. In example small box (child box of bigger one), should be bottom aligned and be just on top of big one. Latest version. Working stable version. Thank you. alvov 1 Quote Link to comment Share on other sites More sharing options...
Guest Posted March 27, 2018 Share Posted March 27, 2018 Does this doc help? http://doc.babylonjs.com/how_to/pivot3.2 Quote Link to comment Share on other sites More sharing options...
Guest Posted March 27, 2018 Share Posted March 27, 2018 and the fix: https://playground.babylonjs.com/indexstable#3I36F7#3 Hersir 1 Quote Link to comment Share on other sites More sharing options...
Hersir Posted March 28, 2018 Author Share Posted March 28, 2018 @Deltakosh Thanks, ok so matrix need to be used now Quote Link to comment Share on other sites More sharing options...
Guest Posted March 28, 2018 Share Posted March 28, 2018 yes 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.