public Transform setTranslation(Vector3f trans) {
        assert Vector3f.isValidVector(trans) : "Invalid translation " + trans;
        this.translation.set(trans);
        return this;
    }
Sets the translation component to the argument.

@param trans the desired offsets (not null, unaffected)
@return the (modified) current instance (for chaining)
jme3-core/src/main/java/com/jme3/math/Transform.java