How do I Stack Entities?

How do I stack entities?

E.G a player stacked on another player

There are two types of data that are of interest.

  • PassengerData
  • VehicleData
1 Like

Thanks for the reply, Simon!

So if I want to make entity1 ride entity2, would I do

entity1.offer(Keys.PASSENGER, entity2);

No, I think it’s the other way around.

entity2.offer(Keys.PASSENGER, entity1);

Makes entity1 a “passenger of” entity2

1 Like