#How to make entities move right/left using applyImpulse? (Minecart problem)

1 messages · Page 1 of 1 (latest)

hearty wyvern
#

I manually made a code that made minecarts start moving briefly just enough to start moving on active rails on all 4 directiosn which are X, Z, -X, -Z using 4 tags. and I'm trying to make it compact only using 2 tags, is there a possible code to make it move right and left?

lost orchid
#

applyImpulse is based on the XYZ of the world not the entity itself, to make it move left and right you can try to check the current view direction of that entity, and checks the left and right of it.