Hey folks,
I've put together a little loader program for testing objects, textures. What I'd like to do is add collisions for the camera and the object that has been loaded (in my tests, a room modelled in 3DS)...
Here's the code I've used:
Const ROOM=1,CAM=2
Collisions CAM,ROOM,2,2
Global font=LoadFont("Arial",20,False,False,False):SetFont font
Global file$=Input$("Enter model filename (with path if not in current folder): ")
Global figure=LoadAnimMesh(file$)
EntityType figure,ROOM
Global camera_p=CreatePivot()
EntityType camera_p,CAM
EntityRadius camera_p,2
Global camera=CreateCamera(camera_p)
Problem is - it doesn't work. The camera passes straight through the object. I've looked at a tutorial by Rob Hutchinson in which he's doing something similar... works for him... not for me! :(
Another quick one - are collisions one-way? That is if you have a collision set up for ball,box does it also trigger if box hits ball? I did a demo in which the collisions only seemed to work one way, but it didn't help to declare ball,box and also box,ball...
I've put together a little loader program for testing objects, textures. What I'd like to do is add collisions for the camera and the object that has been loaded (in my tests, a room modelled in 3DS)...
Here's the code I've used:
Const ROOM=1,CAM=2
Collisions CAM,ROOM,2,2
Global font=LoadFont("Arial",20,False,False,False):SetFont font
Global file$=Input$("Enter model filename (with path if not in current folder): ")
Global figure=LoadAnimMesh(file$)
EntityType figure,ROOM
Global camera_p=CreatePivot()
EntityType camera_p,CAM
EntityRadius camera_p,2
Global camera=CreateCamera(camera_p)
Problem is - it doesn't work. The camera passes straight through the object. I've looked at a tutorial by Rob Hutchinson in which he's doing something similar... works for him... not for me! :(
Another quick one - are collisions one-way? That is if you have a collision set up for ball,box does it also trigger if box hits ball? I did a demo in which the collisions only seemed to work one way, but it didn't help to declare ball,box and also box,ball...