コード例 #1
0
ファイル: cpShape.c プロジェクト: 6311879/LearnCocos2D
void
cpShapeSetBody(cpShape *shape, cpBody *body)
{
	cpAssertHard(!cpShapeActive(shape), "You cannot change the body on an active shape. You must remove the shape from the space before changing the body.");
	shape->body = body;
}
コード例 #2
0
ファイル: cpShape.c プロジェクト: johnstorm/pur
void
cpShapeSetBody(cpShape *shape, cpBody *body)
{
	cpAssertHard(!cpShapeActive(shape), "You cannot change the body on an active shape. You must remove the shape, then ");
	shape->body = body;
}