View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0004285||Multi Theft Auto : San Andreas||Synchronization||public||2009-05-10 05:27||2009-10-24 21:30|
|Target Version||1.0.2||Fixed in Version||1.0.2|
|Summary||0004285: getElementposition returns the incorrect xyz of an element attached and offset from a vehicle|
getElementposition should take into account, if the element its attached to another element and offset , then is rotated right now it takes into account the offset but not rotation
for example i scripted a dozer to pick up objects this offsets the object about 0x 4y 0.25z right in front of the dozer.
but i cant get it to release things exactly if front of the dozer where the objects is dropped unless the vehicle is facing north
even when i get the xyz of the attached objects the rotation of the dozer isnt taken into account its as if the vehicle is always facing north
the object will always be released on the northside of the vehicle regardless of the direction the vehicle is actualy facing
i have other scripts that i wish this worked properly for
like a tow rope for water skiing should be attached to the back of the boat not the middle and so i attached an object as a dummy to get the xyz of the back of the boat to start to draw the line from.
the xyz returned is always offset from the vehicle in the same direction and does not rotate with it
i believe the same fix that got offset attached markers, rotating with objects, would work here, its the same math and same situation basicly
it just needs to be applied
|Tags||No tags attached.|