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


  • Full Member
  • ***
  • Posts: 201
    • View Profile
Adding Rigid Body[SOLVED]
« on: April 10, 2013, 08: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
HutongGames.PlayMaker.FsmLog:LogAction(FsmLogType, 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)

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 10, 2013, 11:24:54 PM by jeanfabre »


  • Full Member
  • ***
  • Posts: 201
    • View Profile
Re: Adding Rigid Body
« Reply #1 on: April 10, 2013, 08: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.