View Single Post
Posts: 137 | Thanked: 150 times | Joined on Jan 2010
#157
In GuidanceModel._updatePosition the parameter is called data and I used data.position and data.speed. But the parameter is really an event which contains a data field! So the parameter should be called event and event.data.position and event.data.speed should be used. I have no idea where the position attached to the event came from.
 

The Following User Says Thank You to CormacB For This Useful Post: