[Request] IPO callback, animation done trigger

View previous topic View next topic Go down

[Request] IPO callback, animation done trigger

Post  yarri on Sun Apr 26, 2009 12:25 pm

Hi, it would be nice to have notification from sio2IpoCurveRender() to either change the state of the IPO curve (NON_CYCLICAL_DONE?) or provide a callback when a rendering stream is completed.

This would help with an in-game "flyby" of a scene done at the beginning of gameplay, ie., a one-time event.

I'll submit code if I make any changes to the engine, but I might just handle this with an NSTimer.

--yarri

yarri

Posts : 81
Join date : 2009-04-10

View user profile

Back to top Go down

Re: [Request] IPO callback, animation done trigger

Post  sio2interactive on Sun Apr 26, 2009 4:16 pm

Simply monitor the state of the curve and set it to constant. When the renderer reach the end of the control points the state will be set to SIO2_IPO_STOP.

_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com
avatar
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 37
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum