In this example script made by HowDo, should the ball be stopping before it its the wall by adjusting the material propertys. No matter what i do, the ball doesn't slow down?
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, 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,0.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
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