コード例 #1
0
ファイル: physics_server_sw.cpp プロジェクト: KelinciFX/godot
PhysicsDirectSpaceState *PhysicsServerSW::space_get_direct_state(RID p_space) {

	SpaceSW *space = space_owner.get(p_space);
	ERR_FAIL_COND_V(!space, NULL);
	if (!doing_sync || space->is_locked()) {

		ERR_EXPLAIN("Space state is inaccessible right now, wait for iteration or physics process notification.");
		ERR_FAIL_V(NULL);
	}

	return space->get_direct_state();
}