Posts: 1,079
	Threads: 64
	Joined: Jan 2010
	
	
 
	
		
		
		
		12.12.2011, 13:04 
(
 Последний раз редактировалось rbN.; 12.12.2011 в 14:59.
					
					
						Причина: made it clearer
)
	
	 
	
		Okay so, in 0.3d there's AttachObjectToObject. The 
wiki of SA-MP says this;
Код:
The distance between the main object and the object in the X/Y/Z direction.
The X/Y/Z rotation between the object and the main object.
 But, how can you calculate these?
	
 
	
	
	
		
	
 
 
	
	
	
		
	Posts: 1,079
	Threads: 64
	Joined: Jan 2010
	
	
 
	
	
		
Quote:
					Originally Posted by  §с†¶e®РµРe
 
 
 | 
 I saw it, I just need to know how to calculate these; OffsetX, OffsetY, OffsetZ, RotX, RotY, RotZ
	
 
	
	
	
		
	
 
 
	
	
	
		
	Posts: 1,781
	Threads: 13
	Joined: Sep 2009
	
Reputation: 
0
	 
 
	
	
		when you create 2 objects, you can estimate the offset for object 2 by aligning it to object 1. object 1 should be set to no rotation, so you can manually "stick" object 2 to it. those position/rotation offsets can be used for the AttachObjectToObject() function.
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 1,079
	Threads: 64
	Joined: Jan 2010
	
	
 
	
	
		
Quote:
					Originally Posted by  Babul
 
 
object 1 should be set to no rotation 
 | 
 Hey, thanks! I forgot that haha.. +rep
	
 
	
	
	
		
	
 
 
	
	
	
		
	Posts: 918
	Threads: 125
	Joined: Nov 2010
	
	
 
	
	
		babul, that don't even has to be like that.
Just get every object info (rot / pos) and minus that from the object which you are going to attach to.