I cannot find the error in this code! ARG!!! I changed my CD Code into 0's so nobody can copy it. But still... I cannot find what's wrong! It's in the EXACT same folder as all of the help example code that come with NGC, and it includes the EXACT same things. And yet, it doesn't work. Does anybody know what's wrong? There's no collision with the world object. It moves, then goes right through the world. Even when I load the 3rd_Person_Shooter example's world, the collision is still broken. I have no idea what's wrong, can you help?
rem SOME globals to make (SetCollisions) and ray-cast
rem statements easier to read
#Constant TYPE_NGC_ELLIP=1
#Constant TYPE_NGC_MESH=2
#Constant ELLIP_2_ELLIP=1
#Constant ELLIP_2_POLY=2
#Constant RESP_STICK=1
#Constant RESP_SLIDE=2
#Constant RESP_SLIDE_NO_SLOPES=6
#Constant RESP_SLIDE_NO_GRAV=10
#Constant RESP_SLIDE_NO_ACCEL=18
#Constant RESP_NONE=32
#Constant DYN_NO_RESP=1
#Constant DYN_RESP=2
#Constant DYN_RESP_LOCK=4
#Constant DYN_RESP_LOCK_NOTURN=12
#Constant NCULL_CLOCK 0
#Constant NCULL_COUNTER_CLOCK 1
#Constant NCULL_NONE 2
rem End globals
rem
rem Startup settings
rem
rem sets our display mode
`SET DISPLAY MODE 800, 600, 16
rem sync on
sync on : sync rate 60 : Autocam off
hide mouse
set camera range 1,50000
rem
rem Scene settings
rem
rem Starts the collision system, this MUST be called before you can call any other
rem collision commands
StartCollisionPRO(000000000,000000000,000000000)
StartCollisionDebugPRO()
global Player=1
global World=2
Skybox("Textures/Red Sky",1000,10000)
make object sphere Player,10
load object "LEvel Data/Level1.x",World
ActivateObjPRO(World)
ActivateObjPRO(Player)
load object "LEvel Data/Level1_lm.x",World+1
ghost object on World+1
#COnstant Type_Player=1
#COnstant Type_World=2
#Constant Type_Move=3
SetCollisionsPRO(Type_Player,Type_World,ELLIP_TO_POLY,RESP_SLIDE_NO_SLOPES,DYN_NO_RESP)
SetCollisionsPRO(Type_Player,Type_Move,Ellip_To_Poly,RESP_Slide_No_slopes,DYN_RESP_Lock)
CollisionTypePRO(Player,Type_Player)
CollisionTypePRO(World,Type_World)
Grav#=2
do
move object Player,5
x#=object position x(Player)
z#=object position z(Player)
RunCollisionPRO()
sync
loop
I've tried everything I can think of, and still no luck.
Ignore the Rems.