playMaker

Author Topic: Adding Rigid Body[SOLVED]  (Read 3135 times)

Sjones

  • Full Member
  • ***
  • Posts: 203
Adding Rigid Body[SOLVED]
« on: April 10, 2013, 11:30:02 AM »
When I try to add a ridgedbody component to an object the log says
"Cube : FSM : Set_Rigid : AddComponent : Can't add component: Rigidbody"

yet it still adds it...

I just had unity crash with this being the last log entry (before it closed) not sure if its related.

is this the correct way to do it, any particular reason there is an error when it does in fact add it? or is this something that isn't supposed to work, but somehow is?

Code: [Select]
Cube : FSM : Set_Rigid : AddComponent : Can't add component: Rigidbody
UnityEngine.Debug:LogError(Object)
HutongGames.PlayMaker.FsmLog:AddEntry(FsmLogEntry)
HutongGames.PlayMaker.FsmLog:LogAction(FsmLogType, String)
HutongGames.PlayMaker.FsmStateAction:LogError(String)
HutongGames.PlayMaker.Actions.AddComponent:DoAddComponent() (at Assets/PlayMaker/Actions/AddComponent.cs:62)
HutongGames.PlayMaker.Actions.AddComponent:OnEnter() (at Assets/PlayMaker/Actions/AddComponent.cs:39)
HutongGames.PlayMaker.FsmState:OnEnter()
HutongGames.PlayMaker.Fsm:EnterState(FsmState)
HutongGames.PlayMaker.Fsm:Start()
PlayMakerFSM:Start()

I have used this a fair bit, using it for optimization purposes and this is the first crash, but also the first time I noticed the error, though the error seems to always happen but still works
« Last Edit: April 11, 2013, 02:24:54 AM by jeanfabre »

Sjones

  • Full Member
  • ***
  • Posts: 203
Re: Adding Rigid Body
« Reply #1 on: April 10, 2013, 11:37:00 AM »
after further investigation, it was unrelated to what I was working on, there was another object in the scene with a rigidbody already added, I had then set playmaker to add a second one, obviously causing problems :P sorry for any inconvenience.