Add utility function bool EC_RigidBody::IsPrimitiveShape.