I'm showing you how I implemented a rotating platform here, so let's hit play here. This is what we have as is, you can see the mesh obviously depends on you. It's simply a mesh again, but you can perfectly place it as a square, a rectangle, which was the figure that I was using. The cube is here where we have the parameters that I can customize. Sorry, I'm touching on it here, which would only be the rotation factor. Let's see how this works, but notice that if I place it here twice as much, it will rotate twice as fast, so the expected effect is also achieved when you position the Player on top of it, the Player rotates with it. Let's see how it is defined.
So I select it here the viewport as I was telling you the mesh I changed it for this mesh that I bought somewhere as well as its material but perfectly be a cube so you can do the test the interesting part that is the event grab is very simple Oh well here by the way another important point we have a component called rotation movement with which we can apply the rotation which is exactly what I'm doing here you can customize it to your liking I'm not going to talk about this in much detail since I want to show you how I implemented it but what we're doing here is get a reference of it as you can see from here we can get the set of what the rotation is and in this case the axis towards which you want to rotate that I want to rotate is in the Z but you can also rotate in the rest of the axes for the rest I take here the value or the rotation factor that was the one you saw that customize is not to indicate what is the degree that it is going to rotate that is to say if only 90 gr or 180 is not like that but it is directly the speed So it is a matter of based on the level that you want to build or the complexity you want to give it simply set a value a little higher or a little lower for example here I am going to set a value a little lower about 10 so that it rotates slowly as you can see and it is that simple so with this you know how to create a surface that rotates:
- Andrés Cruz
Develop with Laravel, Django, Flask, CodeIgniter, HTML5, CSS3, MySQL, JavaScript, Vue, Android, iOS, Flutter
I agree to receive announcements of interest about this Blog.
!Courses from!
10$
On Udemy
There are 3d 17:15!
!Courses from!
4$
In Academy
View courses!Books from!
1$
See the books