示例#1
0
文件: IoODEBox.c 项目: ADTSH/io
void IoODEBox_mark(IoODEBox *self)
{
	if (GEOMID)
	{
		dBodyID body = dGeomGetBody(GEOMID);
		if (body)
		{
			IoObject_shouldMark(IoODEBody_bodyFromId(IOSTATE, body));
		}
	}
}
示例#2
0
文件: IoODEBox.c 项目: ADTSH/io
IoObject *IoODEBox_body(IoODEBox *self, IoObject *locals, IoMessage *m)
{
	IoODEBox_assertHasBoxId(self, locals, m);
	return IoODEBody_bodyFromId(IOSTATE, dGeomGetBody(GEOMID));
}
示例#3
0
文件: IoODEJoint.c 项目: Akiyah/io
IoObject *IoODEJoint_attachedBody2(IoODEJoint *self, IoObject *locals, IoMessage *m)
{
	IoODEJoint_assertValidJoint(self, locals, m);
		return IoODEBody_bodyFromId(IOSTATE, dJointGetBody(JOINTID, 1));
}