#How to rotate a shape around a point

9 messages · Page 1 of 1 (latest)

elder ginkgo
#

easiest is to put that shape inside a body

#

and then move the pivot with ctrl-drag to the center

#

then rotate the body

#

if you need more precision for movement, use window -> snap -> move and set it to half

#

if you are using the tool method and everything is a shape, then you might have to get the center of the shape and do a TransformToParentPoint (i think) to adjust for the offset

#

if you provide more detail somebody could probably help you in #modding-discussion

rain epoch
#

so they will and only be able to use SetShapeLocalTransform

#

Head to the minigun.lua, its a lua script somewhere in the game files, probably factory folder, it would have the stuff you are looking for