Jump to content

Recommended Posts

Posted

This formula:

Object.transformation.position["z"] = Object.transformation.position["z"] + 10

does not work. "Object" is the actual object. How to change coordinates at all?

 

Posted

  local pos =   Object.transformation.position
  Object.transformation.position = {x= pos.x, y= pos.y, z= pos.z + 10}

Posted

How about translateZ function?

It seems Object.transformation:translateZ(1) do the same job. Much easier.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...