|
|
|
3 registered members (AndrewAMD, Grant, valino),
3,361
guests, and 13
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Problems with bounding boxes
[Re: crumply]
#217948
07/25/08 17:46
07/25/08 17:46
|
Joined: Nov 2007
Posts: 1,032 Croatia
croman
Serious User
|
Serious User
Joined: Nov 2007
Posts: 1,032
Croatia
|
are those boxes and slope physics objects or not? have you tried with c_setminmax (but i'm not sure if that will help)
have you set the tilt angle of slope in wed or through the code in sed?
Ubi bene, ibi Patria.
|
|
|
Re: Problems with bounding boxes
[Re: croman]
#217949
07/25/08 17:55
07/25/08 17:55
|
Joined: Mar 2008
Posts: 67
crumply
OP
Junior Member
|
OP
Junior Member
Joined: Mar 2008
Posts: 67
|
I'm using Lite-C free so i have no WED  the bounding boxes are set with: wait(1); c_updatehull(my,1); and that does pretty much the same as c_setminmax from my experience.
|
|
|
Re: Problems with bounding boxes
[Re: crumply]
#217950
07/25/08 17:58
07/25/08 17:58
|
Joined: Jan 2007
Posts: 221
Fenriswolf
Member
|
Member
Joined: Jan 2007
Posts: 221
|
|
|
|
Re: Problems with bounding boxes
[Re: crumply]
#218113
07/26/08 14:28
07/26/08 14:28
|
Joined: Nov 2007
Posts: 1,032 Croatia
croman
Serious User
|
Serious User
Joined: Nov 2007
Posts: 1,032
Croatia
|
while((my.tilt<-30)||(my.tilt>30)||(my.roll>30)||(my.roll<-30))
{
while((my.tilt<-30)||(my.tilt>30)||(my.roll>30)||(my.roll<-30))
{
phent_settype( me, 0, 0 );
if(my.tilt<-20)
{
my.tilt += 10 * time;
}
if(my.tilt>20)
{
my.tilt -= 5 * time;
}
if(my.roll<-20)
{
my.roll += 10 * time;
}
if(my.roll>20)
{
my.roll -= 10 * time;
}
wait(1);
}
phent_settype(me, PH_RIGID, PH_BOX);
wait(1);
}
try with this. if you dont need tilt restrictions just remove it. i'm not sure if this is the best way but it works...
Ubi bene, ibi Patria.
|
|
|
|
|
|
|