Error updating to 2.1.2 KinematicObjectManager.RegisterObject

Hi Justin,

I had my own Moving platform that it was working fine, with the interfaces implemented: IKinematicObject, IInteractableTarget,
But after uploading to 2.1.2 I'm getting this error in the file:
KinematicObjectManager doesn't implement Register Object definition:

/// <summary>
/// Registers the object with the KinematicObjectManager.
/// </summary>
private void OnEnable()
{
m_KinematicObjectIndex = KinematicObjectManager.RegisterObject(this);
}

This is the class,
public class MovingPlatformBoatSyncOpsive : StateBehavior, IKinematicObject, IInteractableTarget,

Any ideas?

It's on the same file that this thread:
https://opsive.com/forum/index.php?threads/moving-platform-in-kinematic-rigibody.1005/#post-5019

EDIT:
Ok, I see you have changed to KinematicObjectManager.RegisterKinematicObject(this); on the Moving Platform instead of RegisterObject(this); so I have changed also on my script and works.

/// <summary>
/// Registers the object with the KinematicObjectManager.
/// </summary>
private void OnEnable()
{
m_KinematicObjectIndex = KinematicObjectManager.RegisterKinematicObject(this);
}
 
Last edited:
Top