Hi,
Just installed patch 2 (well point camera now works so I assume it's installed - put the version number in the about box please!!!) and I thought "Great! Now I can get on with things". Fifteen minutes later this problem came up:
When I * rotate an object, it is rotating around the world axis and not it's local ones. Here's some code:
` Object Rotation Bug
` In DBPro, the object appears to be rotating around the 'world' axis.
` In DB it is rotating around it's local axis (as the help says).
` Left/Right arrows to rotate object on Y axis
` Up/Down arrows to rotate object on X axis
` Use N and M to rotate it around Z axis
` Space to reset position
sync on
sync rate 30
autocam off
make object cube 1, 1
position object 1, 0, 0, -500
point object 1, 0, 0, 0
position camera 0, 0, -510
point camera 0, 0,0
sync
repeat
set cursor 0, 10
print "AX: " + str$(int(object angle x(1))) + " AY: " + str$(int(object angle y(1))) + " AZ: " + str$(int(object angle z(1)))
if leftkey() then yrotate object 1, (wrapvalue(object angle y(1) + 1.00))
if rightkey() then yrotate object 1, (wrapvalue(object angle y(1) - 1.00))
if upkey() then xrotate object 1, (wrapvalue(object angle x(1) + 1.00))
if downkey() then xrotate object 1, (wrapvalue(object angle x(1) - 1.00))
if keystate(49) then zrotate object 1, (wrapvalue(object angle z(1) + 1.00))
if keystate(50) then zrotate object 1, (wrapvalue(object angle z(1) - 1.00))
if spacekey()
position object 1, 0, 0, -500
point object 1, 0, 0, 0
endif
sync
until 1=0
The code works fine in DB, the object quite happily rotates around it's local axis. God knows what DB Pro thinks it's doing!
Am I right or have I done something stupid?
System: 1.333Ghz Athlon Thunderbird, 512meg, Geforce 4 Ti 4400.
Hardware /nm./: the part of the computer that you can kick.