Hello,
Apologies in advance if this should be in the bug section.
In my game I have a tree prefab, this prefab holds an FSM.
The FSM works perfectly but throws up an error.
The prefab itself does not have a rigid body component, I add this in the fsm only when the player interacts (in this case chops down!) with the tree. As I will have thousands of trees in my scene this is intended to save performance (I don't want thousands of rigidbodys if I don't need them)
The FSM adds the rigidbody just fine and then in the next state applies a force to make the tree fall over.
The force is what throws up the error. Playmaker doesn't know the FSM has added a rigid body, so it tells me the object requires one.
It's only an editor error, It's fine at runtime. I have as many of these errors as trees in the scene though so it is annoying!
So I'm wondering;
Ideally - is this a bug that can be fixed?
Am I worrying needlessly about performance, should I just add a rigid body to the object and leave it on permanently, only adding a force in the FSM?
Should I just ignore it?
Maybe I should add a rigidbody to the prefab but disable and enable it as necessary in the FSM?
Any thoughts most welcome.
Thanks