|
1 registered members (Quad),
4,969
guests, and 0
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
A7 c_move() Collision bug? German/English
#257118
03/20/09 15:19
03/20/09 15:19
|
Joined: Oct 2007
Posts: 40 Switzerland
Nikozu86
OP
Newbie
|
OP
Newbie
Joined: Oct 2007
Posts: 40
Switzerland
|
Hallo zusammen. 3DGS A7.6
Ich habe durch Zufall einen heiklen Bug entdeckt. Sobald ich in WED ein Haus-Modell(.mdl) um mehr als 90 Grad drehe, funzt die c_move-Kollisionsabfrage nicht mehr korrekt. Der Player geht durch die Wände! c_trace() erkennt jedoch die polygon-genaue Form. J,a das Haus hat my.polygon = on; & my.passable = off.
So blöd bin nun auch wieder nicht. :-)
Sobald ich das Haus wieder in die Rotate = 0,0,0 setze (in WED!), funzt Alles tip-top! Kann also nicht am Script liegen.
--------------------- Hi Folks! I found a Collision bug from c_move(). When i rotate any house-model (.mdl) more than 90 degrees IN WED, build and run, sometimes the player can walk/run through the house! C_trace() works good. When i set the rotation from the house back to 0,0,0 degrees (in WED!) build and run it, everything works perfect again. So, it`s not my programming-fault!
And yes, the house has My.polygon = on; and My.passable = off;
My brain is still working :-D
I`m using A7.66.4
Last edited by Nikozu86; 03/20/09 18:20.
|
|
|
Re: A7 c_move() Collision bug? German/English
[Re: Nikozu86]
#257121
03/20/09 15:52
03/20/09 15:52
|
Joined: Oct 2007
Posts: 5,211 İstanbul, Turkey
Quad
Senior Expert
|
Senior Expert
Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
|
your bounding box is not set.
add c_setminmax to your horse's action,and see its your fault.
3333333333
|
|
|
Re: A7 c_move() Collision bug? German/English
[Re: Nikozu86]
#257517
03/23/09 17:49
03/23/09 17:49
|
Joined: Oct 2007
Posts: 40 Switzerland
Nikozu86
OP
Newbie
|
OP
Newbie
Joined: Oct 2007
Posts: 40
Switzerland
|
Here the C_MOVE-Code for the Entitys:
c_move(me,vector(my.x_force*time_step ,my.y_force*time_step, 0),vector(0,0,0), IGNORE_PASSABLE|GLIDE); //
HOUSEs Code The Most part of this action handles Shadow and visible of the house.
action GAYA_HAUS2 { //my.push = 99; my.passable = off; my.polygon = on; //my.ambient = -12; my.material=haus_mat;
while(1){ if(vec_dist(my.x,player.x) >4000) {my.invisible = on;} else {my.invisible = off;} if(vec_dist(my.x,camera.x) <1000) {my.shadow = on;} else {my.shadow = off;} wait(1); } } ------------------------------------------ It`s not the Code`s error! It`s the engine. I`ve the trouble only when i change the Angle of the house/Box - Modells more than 90 Degrees in WED (see Video-link above). If i`m seting the Pan-Angle back to zero, it works perfect again.
Last edited by Nikozu86; 03/23/09 17:56.
|
|
|
Re: A7 c_move() Collision bug? German/English
[Re: XD1v0]
#257526
03/23/09 18:59
03/23/09 18:59
|
Joined: Oct 2007
Posts: 40 Switzerland
Nikozu86
OP
Newbie
|
OP
Newbie
Joined: Oct 2007
Posts: 40
Switzerland
|
It`s WDL (C-Script) and i`m using A7.7 now. I repeat again: I`ve got the trouble !ONLY! when i change the Angle of the house/Box - Modells more than 90 Degrees in WED (see Video-link). http://www.youtube.com/watch?v=xv11wtLQ0KoIf i`m seting the Pan-Angle back to zero, it works perfect again.
Last edited by Nikozu86; 03/23/09 21:27.
|
|
|
|