load softbody API

update warning message

format
This commit is contained in:
Chuyuan Fu
2019-04-25 15:18:25 -07:00
parent 10633c7c11
commit 5b5307cf14
5 changed files with 281 additions and 127 deletions

View File

@@ -1079,7 +1079,12 @@ void PhysicsDirect::postProcessStatus(const struct SharedMemoryStatus& serverCmd
}
case CMD_LOAD_SOFT_BODY_COMPLETED:
{
break;
int bodyUniqueId = serverCmd.m_loadSoftBodyResultArguments.m_objectUniqueId;
BodyJointInfoCache2* bodyJoints = new BodyJointInfoCache2;
m_data->m_bodyJointMap.insert(bodyUniqueId, bodyJoints);
bodyJoints->m_bodyName = serverCmd.m_dataStreamArguments.m_bodyName;
bodyJoints->m_baseName = "baseLink";
break;
}
case CMD_SYNC_USER_DATA_FAILED:
{