This might help in seeing what your material acts like.
Rem Project: phymaterialtester1
Rem Created: 12/08/2006 16:15:40
Rem ***** Main Source File *****
sync on
sync rate 60
phy start
autocam off
position camera 10,20,-95
point camera -35,10,0
make light 1
set directional light 1, -5,-5,5
mass#=1000
sticky=1
rem add your materials here
phy make material 1, "sticky"
phy set material static friction sticky, 125.0
phy set material restitution sticky, 0.0
phy set material dynamic friction sticky, 1.0
phy build material sticky
nobouncematerial=2
phy make material nobouncematerial, "little bounce"
phy set material restitution nobouncematerial,0.1
phy build material nobouncematerial
rem ground
make object box 1,100,1,100
position object 1,-50,0,0
phy make rigid body static box 1,sticky
rem make ball
make object sphere 2,6
position object 2,10,16,0
phy make rigid body dynamic sphere 2,nobouncematerial
rem change this to make heavier
phy set rigid body mass 2,mass#
rem slide box
make object box 3,100,1,50
rotate object 3,90,90,-50
color object 3,RGB(255,0,0)
phy make rigid body static box 3
rem stop box
make object box 4,100,1,50
rotate object 4,90,90,0
position object 4,-100,0,0
color object 4,rgb(0,255,0)
phy make rigid body static box 4
do
center text screen width()/2,0,"Dark Physics Material Tester"
if spacekey()
phy set rigid body position 2, 10, 16, 0
phy set rigid body linear momentum 2, 0.0, 0.0, 0.0
endif
control camera using arrowkeys 0,.1,.1
phy update
sync
loop
edit
new improved version now has a launch trigger.
Rem Project: phymaterialtester1
Rem Created: 12/08/2006 16:15:40
Rem ***** Main Source File *****
sync on
sync rate 60
phy start
autocam off
position camera 10,20,-95
point camera -35,10,0
make light 1
set directional light 1, -5,-5,5
mass#=100
sticky=1
rem add your materials here
phy make material 1, "sticky"
phy set material static friction sticky, 10525.0
phy set material restitution sticky, 1.0
phy set material dynamic friction sticky, 10000.0
phy build material sticky
nobouncematerial=2
phy make material nobouncematerial, "little bounce"
phy set material restitution nobouncematerial,0.1
phy build material nobouncematerial
rem ground
make object box 1,100,1,100
position object 1,-50,0,0
phy make rigid body static box 1,sticky
rem make ball
make object sphere 2,6
position object 2,16,16,0
phy make rigid body dynamic sphere 2,nobouncematerial
rem change this to make heavier
phy set rigid body mass 2,mass#
rem slide box
make object box 3,100,1,50
rotate object 3,90,90,-50
color object 3,RGB(255,0,0)
phy make rigid body static box 3
rem stop box
make object box 4,100,1,50
rotate object 4,90,90,0
position object 4,-100,0,0
color object 4,rgb(0,255,0)
phy make rigid body static box 4
make object box 5,100,1,6
rotate object 5,90,90,0
position object 5,11,15,0
color object 5,RGB(0,0,255)
phy make rigid body static box 5
do
center text screen width()/2,0,"Dark Physics Material Tester"
center text screen width()/2,10,"Press Return to launch - Spacebar to Reset."
text 5,25,"Mass# of sphere="+str$(mass#)
text 5,35,"first material static friction="+str$(phy get material static friction(1))
text 5,45,"second material static friction="+str$(phy get material static friction(2))
text 5,55,"first material material restitution="+str$(phy get material restitution(1))
text 5,65,"second material material restitution="+str$(phy get material restitution(2))
text 5,75,"first material material dynamic friction="+str$(phy get material dynamic friction(1))
text 5,85,"second material material dynamic friction="+str$(phy get material dynamic friction(2))
text 5,95,"Sphere linear momentum x ="+str$(phy get rigid body linear momentum x ( 2 ))
text 5,105,"Sphere linear momentum y ="+str$(phy get rigid body linear momentum y ( 2 ))
text 5,115,"Sphere linear momentum z ="+str$(phy get rigid body linear momentum z ( 2 ))
text 5,125,"Sphere linear velocity x ="+str$(phy get rigid body linear velocity x ( 2 ))
text 5,135,"Sphere linear velocity y ="+str$(phy get rigid body linear velocity y ( 2 ))
text 5,145,"Sphere linear velocity z ="+str$(phy get rigid body linear velocity z ( 2 ))
rem phy set material dynamic friction
if returnkey()
phy set rigid body position 5,11,50,0
endif
if spacekey()
phy set rigid body position 5,11,15,0
phy set rigid body position 2, 16, 16, 0
phy set rigid body linear momentum 2, 0.0, 0.0, 0.0
endif
control camera using arrowkeys 0,.1,.1
phy update
sync
loop
now with a sphere drop as well as roll.
Rem Project: phymaterialtest3
Rem Created: 16/08/2006 05:03:09
Rem ***** Main Source File *****
Rem Project: phymaterialtester1
Rem Created: 12/08/2006 16:15:40
Rem ***** Main Source File *****
sync on
sync rate 60
phy start
autocam off
position camera 10,20,-95
point camera -35,10,0
make light 1
set directional light 1, -5,-5,5
mass#=100
sticky=1
rem add your materials here
phy make material 1, "sticky"
phy set material static friction sticky, 105250000.0
phy set material restitution sticky, 0.0
phy set material dynamic friction sticky, 1000000000.0
phy build material sticky
nobouncematerial=2
phy make material nobouncematerial, "little bounce"
phy set material restitution nobouncematerial,1.0
phy build material nobouncematerial
rem ground
make object box 1,100,1,100
position object 1,-50,0,0
phy make rigid body static box 1,sticky
rem make ball
make object sphere 2,6
position object 2,16,16,0
phy make rigid body dynamic sphere 2,nobouncematerial
rem change this to make heavier
phy set rigid body mass 2,mass#
rem slide box
make object box 3,100,1,50
rotate object 3,90,90,-50
color object 3,RGB(255,0,0)
phy make rigid body static box 3
rem stop box
make object box 4,100,1,50
rotate object 4,90,90,0
position object 4,-100,0,0
color object 4,rgb(0,255,0)
phy make rigid body static box 4
make object box 5,100,1,6
rotate object 5,90,90,0
position object 5,11,15,0
color object 5,RGB(0,0,255)
phy make rigid body static box 5
make object sphere 6,6
position object 6,-10,100,0
phy make rigid body dynamic sphere 6,2
make object box 7,10,1,10
position object 7,-10,99.9,0
phy make rigid body static box 7
do
center text screen width()/2,0,"Dark Physics Material Tester"
center text screen width()/2,10,"Press 'r' to roll - 'd' to drop sphere - 'b' do both - Spacebar to Reset."
text 5,25,"Mass# of sphere"
text 5,35," "+str$(mass#)
text 5,45,"ground material"
text 5,55,"static friction = "+str$(phy get material static friction(1))
text 5,65,"restitution.... = "+str$(phy get material restitution(1))
text 5,75,"dynamic friction= "+str$(phy get material dynamic friction(1))
text 255,45,"Sphere 1 Material"
text 255,55,"static friction ="+str$(phy get material static friction(2))
text 255,65,"restitution..... ="+str$(phy get material restitution(2))
text 255,75,"dynamic friction ="+str$(phy get material dynamic friction(2))
text 5,95,"Sphere linear momentum"
text 5,105,"x = "+str$(phy get rigid body linear momentum x ( 2 ))
text 5,115,"y = "+str$(phy get rigid body linear momentum y ( 2 ))
text 5,125,"z = "+str$(phy get rigid body linear momentum z ( 2 ))
text 205,95,"Sphere linear velocity"
text 205,105,"x = "+str$(phy get rigid body linear velocity x ( 2 ))
text 205,115,"y = "+str$(phy get rigid body linear velocity y ( 2 ))
text 205,125,"z = "+str$(phy get rigid body linear velocity z ( 2 ))
rem phy set material dynamic friction
if inkey$()="r"
phy set rigid body position 5,11,50,0
endif
if inkey$()="d"
phy set rigid body position 7,11,99.9,0
endif
if inkey$()="b"
phy set rigid body position 5,11,50,0
phy set rigid body position 7,11,99.9,0
endif
if spacekey()
phy set rigid body position 5,11,15,0
phy set rigid body position 2, 16, 16, 0
phy set rigid body linear momentum 2, 0.0, 0.0, 0.0
phy set rigid body position 6,-10,100,0
phy set rigid body position 7,-10,99.9,0
phy set rigid body linear momentum 6, 0.0, 0.0, 0.0
endif
if object in screen(2)=1 then center text object screen x(2),object screen y(2)-30,"Sphere 1"
if object in screen(6)=1 then center text object screen x(6),object screen y(6)-30,"Sphere 2"
control camera using arrowkeys 0,.1,.1
phy update
sync
loop
Dark Physics makes any hot drink go cold.