here a personal experimental mockup of how I imagine wrapping world edges should look like. bouncing one could be similar just with mirrored stuff. please test and share opinion. note: you might wanna disable auto-cam
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := physlayer
LOCAL_CFLAGS := -O2
LOCAL_C_INCLUDES := $(LOCAL_PATH) $(MISC_DIR)/liblua $(MISC_DIR)/liblua $(JNI_DIR)/SDL/include
LOCAL_SRC_FILES := hwpacksmounter.c \
physfslualoader.c \
physfsrwops.c \
LOCAL_SHARED_LIBRARIES += SDL lua
include $(BUILD_SHARED_LIBRARY)