{
uint32_t id = static_cast<uint32_t>(actor.GetProperty<int>(Actor::Property::ID));
cpBody* cBody = body.Get<cpBody*>();
- cpBodySetUserData(cBody, this);
+ cpBodySetUserData2(cBody, this);
mPhysicsActors.insert(std::make_pair(id, PhysicsActor::New(actor, body, *this)));
actor[Actor::Property::PARENT_ORIGIN] = Dali::ParentOrigin::CENTER;
cpBody* cBody = body.Get<cpBody*>();
if(cBody)
{
- cpBodySetUserData(cBody, nullptr);
+ cpBodySetUserData2(cBody, nullptr);
}
}
cpBody* cBody = body.Get<cpBody*>();
if(cBody)
{
- return reinterpret_cast<PhysicsActor*>(cpBodyGetUserData(cBody));
+ return reinterpret_cast<PhysicsActor*>(cpBodyGetUserData2(cBody));
}
DALI_LOG_ERROR("Body not found in physics actors");
return nullptr;