Gamestudio Links
Zorro Links
Newest Posts
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,577 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19058 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 | chip programmers | 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