in unreal engine 4, how to make an actor move with the platform beneath it, while also…
- User
in unreal engine 4, how to make an actor move with the platform beneath it, while also the actor can move by itself. for example, adding their location to each other.
- Assistant
To make an actor move with a moving platform in Unreal Engine 4, you can use the following steps:
-
First, make sure that both the actor and the moving platform have their movement components attached to them (if not already).
-
In the Blueprint editor for your actor, create a new "Tick" event or use the existing one provided by default.
-
In the "Event Tick" graph, get a reference to your moving platform. You can either use a direct hard reference (if the platform is part of the same blueprint) or use a "Get All Actors of Class" node with the class of your moving platform and select the first one from the array (if the platform is in a separate blueprint).
-
Use the "Get Actor Location" node to get the position of both the platform and the actor.
-
- User
how To make an actor move with a platform beneath it in Unreal Engine 4 c++, to ensure that its movement is synchronized with the platform's movement.
- Assistant
To make an actor move with a platform beneath it in Unreal Engine 4 using C++, follow these steps: