Transform an entity a given distance along a given vector

vec = entity.transformation.xaxis
vec.length = 12 #how much you wanna move
vec.reverse! # if needed to move to otherside
entity.transform! Geom::Transformation.translation(vec)

I think it’s the same problem as that:

2 Likes