Added x-gravity support for trajectory