Make an object and convert it to character controller
Make object cube 6, 10
position object 6, 500, 30, 400
phy make box character controller 6, 500, 30, 400, 10, 20, 10, 1, 1.5, 45
EDIT: You must create the character controller exactly where you created the object i.e. as with above the 500,30,400 in both commands.
Quote: "phy make box character controller 2, 0, 10, 0, 2.5, 2.5, 2.5, 1, 1.5, 45.0
This will set out our controller with the following properties:
· an ID number of 2
· being positioned at 0 units on the X axis
· positioned at 10 units high on the Y axis
· positioned at 0 units on the Z axis
· it will be of size 2.5 units on the X axis
· it will be of size 2.5 units on the Y axis
· it will be of size 2.5 units on the Z axis
· the up direction is on the Y axis
· the maximum step level is 1.5 units
· the maximum slope we can walk up is limited to 45 degrees"
To move I use
position camera object position x ( 6 ), object position y ( 6 ), object position z ( 6 )
rotate camera object angle x ( 6 ), object angle y ( 6 ), object angle z ( 6 )
OldCamAngleY# = CameraAngleY#
OldCamAngleX# = CameraAngleX#
CameraAngleY# = wrapvalue ( CameraAngleY# + mousemovex ( ) * 0.4 )
CameraAngleX# = wrapvalue ( CameraAngleX# + mousemovey ( ) * 0.4 )
yrotate object 6, curveangle ( CameraAngleY#, OldCamAngleY#, 24 )
xrotate object 6, curveangle ( CameraAngleX#, OldCamAngleX#, 24 )
key = 0
if upkey ( )
key = 1
phy move character controller 6, 50.0
endif
if downkey ( )
key = 1
phy move character controller 6, -50.0
endif
endif
Hope this helps
Here I am But am not here, there you are not really there.