Hi there, I have a question, and i need a little help. I've just started using extremephysics, I think its amazing, I'm just not very familiar with the language.
For the rolling ball example, i would like to set the angle of the sprite to the angle at which the ball is moving if possible.
I've also noticed on the testbed example in test number two (and all other tests i believe) when i activate the drawing debug for velocity, in pink it shows me the angle that im looking for, but i can't seem to figure out which variable it is??
Can some one help me please?
I found this but it doesnt seem to work
dir = point_direction(0,0,ep_body_get_xvel_center(global.world,body),ep_body_get_yvel_center(global.world,body)); // 'direction'sp = point_distance(0,0,ep_body_get_xvel_center(global.world,body),ep_body_get_yvel_center(global.world,body));
i read through the topic, its been brought up a couple times and i saw you posted a code that worked in that instance but the code was removed
btw thanks maarten your engine is a miracle
Edited by xsonicvision, 19 July 2012 - 01:18 AM.









