GML GMS2 Physics joints

sercan

Member
Hi,

I have one instance of an object, lets say obj_A, in the room. And another instance of another object, obj_B.

obj_A has a joint anchor with obj_B. Up to this point it s pretty ok.

If there is only one instance of an object in the room, no problem. but having more than one instances, joint fails.

When I add more instances of obj_A and obj_B, is there a way to specifize which instances are gonna have joint and which will not?



Thanks.
 

Nocturne

Friendly Tyrant
Forum Staff
Admin
Moderator
When I add more instances of obj_A and obj_B, is there a way to specifize which instances are gonna have joint and which will not?
Yes.

You need to use the instance IDs of the instances you want to join and not the object indices.
 
Top