コード例 #1
0
ファイル: physics_server_sw.cpp プロジェクト: 03050903/godot
RID PhysicsServerSW::body_get_space(RID p_body) const {

	BodySW *body = body_owner.get(p_body);
	ERR_FAIL_COND_V(!body,RID());

	SpaceSW *space = body->get_space();
	if (!space)
		return RID();
	return space->get_self();
};
コード例 #2
0
ファイル: physics_server_sw.cpp プロジェクト: 03050903/godot
RID PhysicsServerSW::area_get_space(RID p_area) const {

	AreaSW *area = area_owner.get(p_area);
	ERR_FAIL_COND_V(!area,RID());

	SpaceSW *space = area->get_space();
	if (!space)
		return RID();
	return space->get_self();
};