View Single Post
Old 05/02/2019, 08:45 PM   #13
Lunoxx
Big Clucker
 
Join Date: Feb 2015
Posts: 54
Reputation: 0
Default Re: Need help with spatial geometry

Quote:
Originally Posted by Pottus View Post
You messed up you are passing rotation values for position and rotation.

@Edit

Show me your attached offset positions.
Code:
AttachDynamicObjectToObject_lnx(cabina, baza, 0.000000,0.000000,-0.009999,-0.469999,0.000000,90.000000); // cabine to base
AttachDynamicObjectToObject_lnx(brat, cabina, 0.000000,-2.069998,8.448098,0.000000,0.000000,0.000000); // crane-arm (i think) to cabine
AttachDynamicObjectToObject_lnx(cablu0, brat, 0.000000,36.869819,-0.569999,0.000000,0.000000,0.000000); // cable to arm
AttachDynamicObjectToObject_lnx(magnet, cablu0, 0.000000, 0.000000,-7.440086,0.000000,0.000000,0.000000); // magnet to cable
AttachDynamicObjectToObject_lnx(cablu1, magnet, 0.000000, 0.000000,7.440086,0.000000,0.000000,0.000000); // suplimentary cable for "effect go-down"
EDIT: _lnx because I saved in this function offsets in variables.
__________________
Skype: alin.m99
Discord: lunoxx#1155
FB Page: f.a.c.e.book.com/pawnscripts
Lunoxx is online now   Reply With Quote