Posted November 18, 2024 by Pixel Rebirth
#3D #Construct 2 #babylon.js #plugin
This new update mainly focuses on improving the functionality of the Box behavior.
There is a new property called "Tiled" which when set to "No" will internally create a different Babylon.js primitive that is not tiled by default. This behaves differently especially when you play around with U/V scale properties.
Combined with the ability to offset U/V coordinates via actions this even makes animating Boxes possible.
A crucial addition is the "Get pointer position" action which will return (via expressions) the first position in 3D space and even the mesh UID given any regular X, Y canvas coordinates (usually used with Mouse.X and Mouse.Y).
So this is an easy way to pick anything clicked on with the mouse for example. Keep in mind your 3D object needs to be pickable.
Changelog: