View Issue Details

IDProjectCategoryView StatusLast Update
0007349Multi Theft Auto : San AndreasClientpublic2012-09-24 10:33
ReporterarranTunaAssigned Toccw 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version 
Target Version1.3.2Fixed in Version1.3.2 
Summary0007349: Ped won't move forwards in the rotation set
Description

Go to grove street and do:

crun ped = createPed(0, 2485, -1667, 14)
crun setElementRotation(ped, 0, 0, 340, "default", true) -- Looks right
crun setPedControlState(ped, "forwards", true) -- Ped rotates 90 degrees then moves forwards

crun ped = createPed(0, 2485, -1667, 14)
crun setPedRotation(ped, 340) -- Looks right
crun setPedControlState(ped, "forwards", true) -- Works as should.

crun ped = createPed(0, 2485, -1667, 14)
crun setElementRotation(ped, 0, 0, 340, "ZXY", true) -- Faces wrong direction.
crun setPedControlState(ped, "forwards", true) -- But then turns to right direction.

crun ped = createPed(0, 2485, -1667, 14)
crun setElementRotation(ped, 0, 0, 340, "ZYX", true) -- Faces wrong direction.
crun setPedControlState(ped, "forwards", true) -- But then turns to right direction.

So basically setElementRotation doesn't fully work for peds as all 3 different setElementRotation rotation orders don't properly work if you want the ped to move.

TagsNo tags attached.

Activities

ccw

2012-09-23 23:43

administrator   ~~0017621

Fixed in http://code.google.com/p/mtasa-blue/source/detail?r=4704

"default", true) is required for the fix to work.

(No idea what the rotation order is for)

Issue History

Date Modified Username Field Change