You also need to switch CCD on for the rigid body using "phy set rigid body ccd 3, 1"
Here's a full program demonstrating how things work:
` this program demonstrates how continous collision detection
` can be applied to objects
` set up the program
autocam off
sync on
sync rate 60
hide mouse
randomize timer ( )
make light 1
set directional light 1, -5, -5, 5
backdrop off
phy enable debug
phy start
` create background sphere
load image "stripe5.png",1
make object sphere 2,400,48,48
texture object 2,1
scale object texture 2,6,6
set object cull 2,0
` create the floor object
load image "stripe6.png", 3
make object box 10, 50, 1, 50
position object 10, 0, -10, 0
texture object 10, 3
phy make rigid body static mesh 10
` turn ccd on
phy set continuous cd 1.0
` make object in centre with no ccd
make object cube 100, 5
position object 100, 0, 100, 0
phy make rigid body dynamic box 100
phy set rigid body linear velocity 100, 0, -1000, 0
` make object on left with ccd
make object cube 101, 5
position object 101, -20, 100, 0
phy make rigid body dynamic box 101
phy set rigid body linear velocity 101, 0, -1000, 0
phy set rigid body ccd 101, 1
` make object on right with ccd
make object cube 102, 5
position object 102, 20, 100, 0
phy make rigid body dynamic box 102
phy set rigid body linear velocity 102, 0, -1000, 0
phy set rigid body ccd 102, 1
` position and rotate the camera
position camera -46.8, 26.8, -49
rotate camera 34.7, 46.4, 0
` display the Dark Physics logo
load image "logo.png", 100000
sprite 1, 0, 600 - 60, 100000
set sprite 1, 0, 1
` main program loop
do
set cursor 0, 0
print "Continuous Collision Detection Example"
print ""
print "The objects on the left and right have CCD applied"
print "They can move at high speeds and not penetrate the ground"
print ""
print "The object in the centre is not using CCD"
print "As a result of this it will fall through the ground"
` rotate the sphere
rotate object 2, object angle x ( 2 ) + 0.1, object angle y( 2 ) - 0.5, object angle z ( 2 ) + 0.3
` update the simulation and screen
phy update
sync
loop