Simple move -Kinematic-
set display mode 800,600,32
backdrop on
sync on
autocam off
phy start
phy set gravity 0,0,0
make object plain 1,50,50
color object 1,rgb(0,0,200)
xrotate object 1,270
make object cube 2,2
position object 2,0,1,0
phy make rigid body dynamic box 2
phy set rigid body kinematic 2,1
x#=0.0
z#=0.0
position camera 0,0,50,-50
point camera 0,0,0,0
do
if upkey()
inc z#,0.1
endif
if downkey()
dec z#,0.1
endif
if leftkey()
dec x#,0.1
endif
if rightkey()
inc x#,0.1
endif
phy set rigid body position 2,x#,1,z#
phy update
sync
loop
Simple Move -Linear Velocity-
set display mode 800,600,32
backdrop on
sync on
autocam off
phy start
phy set gravity 0,0,0
make object plain 1,50,50
color object 1,rgb(0,0,200)
xrotate object 1,270
make object cube 2,2
position object 2,0,1,0
phy make rigid body dynamic box 2
x#=0.0
z#=0.0
position camera 0,0,50,-50
point camera 0,0,0,0
do
if upkey()
inc z#,0.1
endif
if downkey()
dec z#,0.1
endif
if leftkey()
dec x#,0.1
endif
if rightkey()
inc x#,0.1
endif
phy set rigid body linear velocity 2,x#,0,z#
phy update
sync
loop
For rotation, I think you should try these:
-Dynamic-
phy set rigid body angular velocity
phy set rigid body angular momentum
-Kinematic-
phy set rigid body kinematic rotation
Ad Astra Per Asper