behavior playground question
by brandon young · in Torque Game Builder · 12/02/2012 (4:51 pm) · 1 replies
iam taking a close look at how the behaviors work in the behavior playground. I will give a quick setup, then ask my question. There are 2 shooting objects there. One has tank controls and shoots the blue projectile. The other has joystick align and shoots the yellow projectile. The tank object shoots its projectile from its center. The other shoots with an offset. The projectile comes from its edge rather from its center. How is this being done? I am not seeing what is making them different?
Torque Owner Kevin James
To change this you could add a field to the "Shoots" behavior is something like fireFrom. Make it a coord type and the only legal values should be -1 to 1. This coord will be in the object's space.