Blockland Forums > General Discussion
What was that one command that lets you change your character's position?
boodals 2:
--- Quote from: Port on September 09, 2013, 03:25:38 PM ---Blame TGE for even caring about setting position.
setTransform defaults to "0 0 0 1".
--- End quote ---
Nope, i'm doing it right now, and unless something is broken or modded somehow with my BL, it keeps the players current rotation.
Also, you typo'd. Should be "0 0 1 0".
Tested with player and jeep.
Port:
--- Quote from: boodals 2 on September 09, 2013, 03:29:32 PM ---Also, you typo'd. Should be "0 0 1 0".
--- End quote ---
How so? That'd rotate on Z by 1 scaled to 0.
None of them really make sense anyway, "0 0 0 0" seems the most logical.
boodals 2:
--- Quote from: Port on September 09, 2013, 03:31:02 PM ---How so? That'd rotate on Z by 1 scaled to 0.
--- End quote ---
Perhaps I don't understand axis angles as much as I thought.. I thought it was [normalised 3d vector] [angle around vector]?
Port:
--- Quote from: boodals 2 on September 09, 2013, 03:35:34 PM ---Perhaps I don't understand axis angles as much as I thought.. I thought it was [normalised 3d vector] [angle around vector]?
--- End quote ---
How would [angle around vector] work? You can't represent individual 3D rotation components using a single angle value.
--- Quote from: Port on September 09, 2013, 03:31:02 PM ---That'd rotate on Z by 1 scaled to 0.
--- End quote ---
--- Quote from: Wikipedia, the free encyclopedia ---The axis-angle representation of a rotation parameterizes a rotation of a rigid body in a three-dimensional space by two values: a unit vector indicating the direction of an axis of rotation, and an angle θ describing the magnitude of the rotation about the axis.
--- End quote ---
boodals 2:
Its rotated about the axis defined in the 3d vector. The wiki quote is what i'm thinking of, i probably just worded it dumbly.
Anyway, im 90% sure that when setTransform is given only a position, it uses the objects's current rotation. Try it yourself.