|
3 registered members (AndrewAMD, juanex, Grant),
1,018
guests, and 8
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
c_rotate stop at collision
#101599
12/09/06 07:21
12/09/06 07:21
|
Joined: Mar 2006
Posts: 3,538 WA, Australia
JibbSmart
OP
Expert
|
OP
Expert
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]
#101602
12/12/06 13:14
12/12/06 13:14
|
Joined: Mar 2006
Posts: 724 the Netherlands
Frits
User
|
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: Christian__A]
#101604
12/14/06 05:50
12/14/06 05:50
|
Joined: Mar 2006
Posts: 3,538 WA, Australia
JibbSmart
OP
Expert
|
OP
Expert
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: ello]
#101607
12/19/06 00:42
12/19/06 00:42
|
Joined: Aug 2004
Posts: 1,305 New York
PrenceOfDarkness
Serious User
|
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.
|
|
|
|