#Vehicle origin point

1 messages · Page 1 of 1 (latest)

mild fossil
#

How do I make a vehicle return to it's origin point when it's exited

glossy crane
#

since moving the vehicle implies moving the whole vehicle prefab, it's not possible without plugins.
though if you figure out a way to make a child gameobject of vehicle move instead of the main prefab, you could make it go back to the vehicle prefab position

mild fossil
#

ic

#

i originally was trying to use an animation to do something like that

#

not sure how to setup animations for vehicles though

#

the whole situation is making my drone teleport back to the seat or else it'd change the vehicle position upon relog

glossy crane
#

@mild fossil you could make the drone be a turret and have it move while vehicle and the player stays at the origin point

mild fossil
#

I did this

#

That's how it works atm

#

When the player exits the vehicle, they stay in the same place

#

But if you or someone else were to die or log in, the seat and control area would move to where the drone is

#

and in some cases fall through thin objects

glossy crane
#

how did you set it up?

mild fossil
#

Do you mind I dm you the Unity files later

#

It'll be easier to have you look at it directly

glossy crane
#

no worries

#

i'll take a look at them

mild fossil
#

thanks

#

I'll send you it in an hour or so

#

currently at a lecture rn lol

glossy crane
#

@mild fossil You made it so the drone is the main vehicle and the table stays independant from it, but moving the drone move the vehicle prefab, which is not ideal for a reset, i'd advise making the vehicle prefab not move and have a sub gameobject move, but this means not being able to use standard controls

mild fossil
#

well uh

#

that would be problematic

#

do you have any other ideas

glossy crane
#

the only thing that comes to my mind wouldn't solve your issue, but particles are independent from prefab if they're set in the "world" reference, and you can have 3d particles, but i don't know how to interract with this particle so it's only for visual purposes

mild fossil
#

ic