Author Topic: What was that one command that lets you change your character's position?  (Read 1838 times)

Blame TGE for even caring about setting position.
setTransform defaults to "0 0 0 1".
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.

Also, you typo'd. Should be "0 0 1 0".

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.

How so? That'd rotate on Z by 1 scaled to 0.

Perhaps I don't understand axis angles as much as I thought.. I thought it was [normalised 3d vector] [angle around vector]?

Perhaps I don't understand axis angles as much as I thought.. I thought it was [normalised 3d vector] [angle around vector]?

How would [angle around vector] work? You can't represent individual 3D rotation components using a single angle value.



That'd rotate on Z by 1 scaled to 0.

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.

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.