+1
Answered

`Chronos.RigidbodyTimeline2D' could be found

oxyscythe 3 years ago updated by Yare' Nasi Rapha' Ra 2 years ago 4

Hello getting this error on the latest version:

Assets/Chronos/PlayMaker/Physics 2D/IsKinematic2d.cs(52,43): error CS1061: Type `Chronos.RigidbodyTimeline2D' does not contain a definition for `isKinematic' and no extension method `isKinematic' of type `Chronos.RigidbodyTimeline2D' could be found. Are you missing an assembly reference?


Chronos Version:
2.4.8 (March 2017)
Unity Version:
5.5.1.f1

Answer

Answer
Answered

Hi! Sorry for the late reply.

I updated the way 2D rigidbodies are handled in 2.4.8 when in pause / rewind. I forgot to update the migration tables though, sorry, I'll do that now.

Basically, RigidbodyTimeline2D.isKinematic has been replaced by RigidbodyTimeline2D.bodyType.

For example, if you had this line before:

myTimeline.rigidbody2D.isKinematic = true;

You should replace it with:

myTimeline.rigidbody2D.bodyType = RigidbodyType2D.Kinematic;

More information on the 2D rigidbody types can be found in the Unity manual:

https://docs.unity3d.com/Manual/class-Rigidbody2D.html

For more details about why I decided to make this backwards-incompatible change, you can look at this issue: http://support.ludiq.io/topics/48-pause-bugglitches-on-tutorial/

I'll update the migration tables now, let me know if this fixes your issue!

Same here. Any word on how to resolve this. For now i'm having to leave it out but definitely would be good to get some info on this. Thanks Devs

Answer
Answered

Hi! Sorry for the late reply.

I updated the way 2D rigidbodies are handled in 2.4.8 when in pause / rewind. I forgot to update the migration tables though, sorry, I'll do that now.

Basically, RigidbodyTimeline2D.isKinematic has been replaced by RigidbodyTimeline2D.bodyType.

For example, if you had this line before:

myTimeline.rigidbody2D.isKinematic = true;

You should replace it with:

myTimeline.rigidbody2D.bodyType = RigidbodyType2D.Kinematic;

More information on the 2D rigidbody types can be found in the Unity manual:

https://docs.unity3d.com/Manual/class-Rigidbody2D.html

For more details about why I decided to make this backwards-incompatible change, you can look at this issue: http://support.ludiq.io/topics/48-pause-bugglitches-on-tutorial/

I'll update the migration tables now, let me know if this fixes your issue!

I just re-read your issue and realized this compile error came from built-in Playmaker actions!

I will do the required code changes and fix it for v.2.4.9.

Thanks for your bug report. :)

Yes indeed thanks for that will look forward to this. :D