Teleport Vehicles (Velocity problem)

Hello,

I’ve made a small BP to teleport my pawns, it works well with Human Characters, but not with wheeled vehicules.
When I get out from the portal the velocity vector doesn’t change, It’s the same when I get in.
How to set the velocity vector to the Pawn whan Get Out of my Portal for vehicules? How to rotate it?

I have found the node “Get velocity” but a “Set velocity” seems not to exist.
Hope you understand my bad english, print screen and scheme are present in attachments to understand the problem

Thanks

Hi Timbiat,

The parent class of my pawn is “Wheeld vehicule”, the part of the BP that can present an interest is in the screenshot below.
The steps of the problem in 3D is attached too.

  1. Initial velocity and enter the teleporter (or portal)
  2. Exit the portal with initial velocity and direction
    3-4) The car spin out because the velocity vector is in the initial direction

Thanks

Hmm, could you cast to your vehicle BP and then use that to reference the vehicle movement script like below? You can set the velocity, but it has to be done through a reference to the BP’s movement script. I did this with the standard WheeledVehicle BP, but it should apply to any specific WheeledVehicle BP you have created. In your case it wouldn’t apply 1:1 because you’d have to first check to make sure it’s a vehicle entering, but the theory for setting the velocity applies the same.

Hi!

  1. I’ve tried, but it’s not working! The logic seems good, but it’s not working and I don’t understand why!
    In my wheeled Vehicle, if I press “X” nothing happens. I was hoping that the vehicule stop intantanly (with 0,0,0 as velocity) or get a big velocity in X direction if I set the value to 1000,0,0 for example.

  2. I will not use Casting but an Interface Blueprint to get the same result, the teleport event come from the Interface BP.
    I will send the value of the portal’s forward vector to modify the velocity vector in the vehicle BP, but only if we found a way to modify the initial velocity!

  3. I was thinking the velocity is the key, but perhaps another parameter to take in account? Which one?

Thanks for your interest in this problem!

Hi!

Found a solution (attachments)!
I use an interface BP to communicate between the portal and the vehicule.

Thanks and hope it can help somebody too!