[BUG ?] fX, fY, fZ in OnPlayerWeaponShot
#6

Quote:
Originally Posted by Drebin
Посмотреть сообщение
No. The offsets are related to the object's axes:
Код:
CreateObject(6959, 17.18580, -58.10570, 2.61260,   0.00000, 0.00000, 0.00000);
If you shoot the easternmost corner of this object, you will get an offset of around X=20, when you rotate the object around 180 on the Z axis,
Код:
CreateObject(6959, 17.18580, -58.10570, 2.61260,   0.00000, 0.00000, 180.00000);
the same spot will output X=-20.

Код:
CreateObject(6959, 17.18580, -58.10570, 2.61260,   0.00000, 0.00000, 90.00000);
This will output Y=-20
So you see where the problem is. In your test you are applying the offsets to the world's axes, and not the object's axes. You'll have to do some calculations which also contain the angles of the objects so you can determine where to place these orange balls precisely.
You said the exact same thing I did, with a lot more words. The offsets assume a DEFAULT (0.0) object ROTATION.
Reply


Messages In This Thread
[BUG ?] fX, fY, fZ in OnPlayerWeaponShot - by newbienoob - 17.01.2014, 16:17
Re: [BUG ?] fX, fY, fZ in OnPlayerWeaponShot - by FUNExtreme - 17.01.2014, 16:36
Re: [BUG ?] fX, fY, fZ in OnPlayerWeaponShot - by newbienoob - 18.01.2014, 05:15
Re: [BUG ?] fX, fY, fZ in OnPlayerWeaponShot - by Drebin - 18.01.2014, 08:55
Re: [BUG ?] fX, fY, fZ in OnPlayerWeaponShot - by ACI - 18.01.2014, 10:22
Re: [BUG ?] fX, fY, fZ in OnPlayerWeaponShot - by FUNExtreme - 18.01.2014, 12:36

Forum Jump:


Users browsing this thread: 1 Guest(s)