Gamestudio Links
Zorro Links
Newest Posts
Bug in train mode, or it seem to me
by jcl. 09/22/26 14:47
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 09/22/26 12:21
Capital slider is not saving in Z12
by Petra. 09/22/26 06:49
Parent/child object
by VoroneTZ. 09/22/26 05:52
Zorro tutorial ideas?
by AndrewAMD. 09/21/26 14:50
Trades during a running bar
by Martin_HH. 09/21/26 12:03
Avoiding pop-up training parameter results
by Martin_HH. 09/16/26 21:31
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 1,997 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Opus, Jubilee, lopezsergio07, mistery, lokkalyansamiti
19239 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Object group move #140059
07/07/07 22:44
07/07/07 22:44
Joined: Mar 2006
Posts: 752
Portugal
demiGod Offline OP
User
demiGod  Offline OP
User

Joined: Mar 2006
Posts: 752
Portugal
Hi,

I am trying to find a simple way to move (with c_move) a group of objects that must have always the same distance between them:



No big deal with the movement:

Code:

c_move(object1,nullvector,vector(20*mouse_force.y,0,0),glide);
c_move(object2,nullvector,vector(20*mouse_force.y,0,0),glide);
c_move(object3,nullvector,vector(20*mouse_force.y,0,0),glide);
c_move(object4,nullvector,vector(20*mouse_force.y,0,0),glide);
c_move(object5,nullvector,vector(20*mouse_force.y,0,0),glide);



The problem is i need collision detection and limiting directly the object´s x coordinate movement its harder and i will loose the collision.
Also, when the object1 or object5 collides with the walls, all the objects must stop and stay always at same distance between them.

So, which will be a good way to do this?

Thanks in advance.

Re: Object group move [Re: demiGod] #140060
07/07/07 23:28
07/07/07 23:28
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
Maybe creating a model that contains all your five models?


Always learn from history, to be sure you make the same mistakes again...
Re: Object group move [Re: Uhrwerk] #140061
07/07/07 23:39
07/07/07 23:39
Joined: Mar 2006
Posts: 752
Portugal
demiGod Offline OP
User
demiGod  Offline OP
User

Joined: Mar 2006
Posts: 752
Portugal
Humm.. dont know..

I need individual collision detection and each object will change its pan and tilt too with c_rotate. Even with polygon collision one global model will need too much animations..


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1