Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  question about actor
#1
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 .


Attached Files Thumbnail(s)
           
Reply
#2
(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!
Reply