Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/28/24 09:55
basik85278
by basik85278. 04/28/24 08:56
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (SBGuy, Quad), 768 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
attaching two spheres together #381457
08/28/11 15:01
08/28/11 15:01
Joined: Aug 2004
Posts: 1,305
New York
PrenceOfDarkness Offline OP
Serious User
PrenceOfDarkness  Offline OP
Serious User

Joined: Aug 2004
Posts: 1,305
New York
Hey guys, I'm making a simple game where I want to attach two spheres together (actually it's many sphere but I can't even attach two together yet). One of them will be rotating about and the other should attach to it and just simple spin with it. I can't think of a good way to go about doing this. Any suggestions?

I just realized that wasn't very specific. Let me explain what I'm trying to do exactly. I'm going to have a big grey sphere in the middle of the screen which you can control by rotating counter clockwise or clockwise. Other spheres are coming at you from all different directions. When they impact with you they should attach but not overlap with the grey sphere. I would want the point of impact to be the point of attachment.

I hope that makes a bit more sense.

Last edited by PrenceOfDarkness; 08/28/11 15:42.

"There is no problem that can't be solved with time and determination." -me
prenceofdarkness for instant messages on AIM.

Looking for a model designer
PLEASE, SEND ME A PRIVATE MESSAGE OR EMAIL IF YOU'RE INTERESTED.
Re: attaching two spheres together [Re: PrenceOfDarkness] #381459
08/28/11 15:18
08/28/11 15:18
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
You should use "cos" and "sin" with the first PAN of the first sphere which should rotate I guess.
Should I make a demo? I can give it a try if you want me to.


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: attaching two spheres together [Re: 3run] #381462
08/28/11 15:43
08/28/11 15:43
Joined: Aug 2004
Posts: 1,305
New York
PrenceOfDarkness Offline OP
Serious User
PrenceOfDarkness  Offline OP
Serious User

Joined: Aug 2004
Posts: 1,305
New York
I thought of that 3run. I thought it might be a lot of work and I was over thinking it. If there is no other solution then I guess I'll go that route. Also check out the previous post as I edited it a bit.

Last edited by PrenceOfDarkness; 08/28/11 15:43.

"There is no problem that can't be solved with time and determination." -me
prenceofdarkness for instant messages on AIM.

Looking for a model designer
PLEASE, SEND ME A PRIVATE MESSAGE OR EMAIL IF YOU'RE INTERESTED.
Re: attaching two spheres together [Re: PrenceOfDarkness] #381464
08/28/11 16:09
08/28/11 16:09
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
I have quick and small thoughts about this.. Check each moving spheres XYZ coordinates (relating to the grey sphere position).
Then, when small sphere touches the grey one, in event attach it's position, relating to grey sphere, and rotate it with it's angles.
This just quick thoughts, I'll give it a try. If I'll get anything work, I'll let you know.


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung

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