Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 02/21/26 19:15
Camera always moves upwards?
by clonman. 02/21/26 09:29
Zorro version 3.0 prerelease!
by TipmyPip. 02/20/26 13:22
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/19/26 13:22
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 6,962 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
alx, ApprenticeInMuc, PatrickH90, USER0328, Sfrdragon
19199 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
c_rotate stop at collision #101599
12/09/06 07:21
12/09/06 07:21
Joined: Mar 2006
Posts: 3,538
WA, Australia
J
JibbSmart Offline OP
Expert
JibbSmart  Offline OP
Expert
J

Joined: Mar 2006
Posts: 3,538
WA, Australia
currently c_rotate rotates to the required position and moves so that it isnt intersecting any solid objects (basically). in most cases it is best this way. however, it would be nice to have a function that would rotate towards a new angle (parameters would determine if u rotate clockwise or anticlockwise or whatever) and stop where it hit something... for example in real life if u swing a cricket bat attempting to go through a wall it will stop where it hits the wall (as long as u hold it sturdy enough), not continue the rotation and adjust position to allow this rotation to be possible.

it would be really helpful for car games or making our own physics (especially if we dont own pro) with pivots n stuff.

julz


Formerly known as JulzMighty.
I made KarBOOM!
Re: c_rotate stop at collision [Re: JibbSmart] #101600
12/11/06 20:30
12/11/06 20:30
Joined: Jul 2000
Posts: 8,973
Bay Area
Doug Offline
Senior Expert
Doug  Offline
Senior Expert

Joined: Jul 2000
Posts: 8,973
Bay Area
This should work if you don't use "glide" in c_rotate.


Conitec's Free Resources:
User Magazine || Docs and Tutorials || WIKI
Re: c_rotate stop at collision [Re: Doug] #101601
12/11/06 22:27
12/11/06 22:27
Joined: Mar 2006
Posts: 3,538
WA, Australia
J
JibbSmart Offline OP
Expert
JibbSmart  Offline OP
Expert
J

Joined: Mar 2006
Posts: 3,538
WA, Australia
okay, thank you


Formerly known as JulzMighty.
I made KarBOOM!
Re: c_rotate stop at collision [Re: JibbSmart] #101602
12/12/06 13:14
12/12/06 13:14
Joined: Mar 2006
Posts: 724
the Netherlands
Frits Offline
User
Frits  Offline
User

Joined: Mar 2006
Posts: 724
the Netherlands
I have tried it also, but that does not stop the rotating entity when an object is in the way.
According to the manual:
"Gliding along walls is always activated. Otherwise the entity could easily become stuck on rotation."
So, how can I stop the rotation when it is blocked by an other entity?


I like to keep scripting simple, life is hard enough as it is.
Regards,
Frits
Re: c_rotate stop at collision [Re: Frits] #101603
12/12/06 21:23
12/12/06 21:23
Joined: Oct 2002
Posts: 799
Germany->Bavaria->Nuremberg
C
Christian__A Offline
User
Christian__A  Offline
User
C

Joined: Oct 2002
Posts: 799
Germany->Bavaria->Nuremberg
You could try rotating in very small steps. If you use Glide, you could check after each c_rotate if the position has changed. If yes, stop the rotation. This is really slow, but it works


MfG, Christian__A. Visit my Site: www.chris-a.de


Re: c_rotate stop at collision [Re: Christian__A] #101604
12/14/06 05:50
12/14/06 05:50
Joined: Mar 2006
Posts: 3,538
WA, Australia
J
JibbSmart Offline OP
Expert
JibbSmart  Offline OP
Expert
J

Joined: Mar 2006
Posts: 3,538
WA, Australia
hmmm... i didnt try it but obviously doesnt work. my request still stands then!!!

request still standing!!

love julz


Formerly known as JulzMighty.
I made KarBOOM!
Re: c_rotate stop at collision [Re: JibbSmart] #101605
12/15/06 01:14
12/15/06 01:14
Joined: Mar 2003
Posts: 4,427
Japan
A
A.Russell Offline
Expert
A.Russell  Offline
Expert
A

Joined: Mar 2003
Posts: 4,427
Japan
How about using a collision event?

Re: c_rotate stop at collision [Re: A.Russell] #101606
12/15/06 11:27
12/15/06 11:27
Joined: Oct 2002
Posts: 8,939
planet.earth
ello Offline
Senior Expert
ello  Offline
Senior Expert

Joined: Oct 2002
Posts: 8,939
planet.earth
...and maybe using c_updatehull or c_setminmax...

Re: c_rotate stop at collision [Re: ello] #101607
12/19/06 00:42
12/19/06 00:42
Joined: Aug 2004
Posts: 1,305
New York
PrenceOfDarkness Offline
Serious User
PrenceOfDarkness  Offline
Serious User

Joined: Aug 2004
Posts: 1,305
New York
I don't seem to have this problem, use collision detection with polygons not the box thingy. I think it's the polgon.on flag...


"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: c_rotate stop at collision [Re: PrenceOfDarkness] #101608
12/21/06 11:13
12/21/06 11:13
Joined: Jul 2000
Posts: 28,074
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,074
Frankfurt
Currently c_rotate uses a method that can't stop on collisions. However I see that this would make sense. I've put it on my list.


Moderated by  aztec, Spirit 

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