Obi Official Forum

Full Version: question about actor
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi bro,

I need use actor to get particles position.

I declare actor in Class and use it in Update() function,like picture.

And i get errors,but only at the first in Update() loop,then it can run well without errors。

I wonder what is the reason and how can i fix it .
(21-12-2020, 02:50 PM)FZMv587 Wrote: [ -> ]Hi bro,

I need use actor to get particles position.

I declare actor in Class and use it in Update() function,like picture.

And i get errors,but only at the first in Update() loop,then it can run well without errors。

I wonder what is the reason and how can i fix it .

Hi there!

you're missing:

Code:
if (actor.isLoaded)

before the for loop. You can't access actor data unless it's loaded in the solver Sonrisa. See: http://obi.virtualmethodstudio.com/tutor...icles.html
let me know how it goes!