constantForce problem

I’m having a crash when I add a constantForce to an Object. this worked in 2.6 and only appeared after changing to U3 beta.

here’s a code example that crashes

missile.transform.parent = null;
mb = missile.AddComponent(Rigidbody);
mb.velocity = rb.velocity;

missile.AddComponent(BoxCollider);
missile.GetComponent(BoxCollider).isTrigger = true;

moveDirection2 = playerO.transform.forward ;
			
mf = missile.AddComponent(ConstantForce);
mf.relativeForce = moveDirection2;

any ideas?

I can’t find anything like this in the bug database, so it is possible that it hasn’t been fixed for the latest release candidate. Please can you file a bug report for this (menu: Help > Report A Bug).

I’ve found out when I use this code in Update instead of fixedUpdate it works.

I’m not sure if this is intended behaviour or not, as it worked before in fixedUpdate as well. I’ll try to create a simple demo scene for the crash and will submit a bug.