Gamestudio Links
Zorro Links
Newest Posts
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Newbie Questions
by AndrewAMD. 12/04/23 11:14
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
2 registered members (TipmyPip, izorro), 556 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 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