Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,014 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
bonding box #300074
11/29/09 16:46
11/29/09 16:46
Joined: Jul 2008
Posts: 128
Ukraine
BastovBros Offline OP
Member
BastovBros  Offline OP
Member

Joined: Jul 2008
Posts: 128
Ukraine
A question about the bounding box. My player has the bounding box, so he is non-passable when he is not in the vehicle. The vehicle also has the bounding box, so when I get in the vehicle it behaives unpredictably, thus I make the player passable, when he enters the vehicle
if(my.x == vehicle.x){ set(my,PASSABLE);}
though when I get out of the vehicle again, I cannot make myself unpassable again? Is there a flag opposite to PASSABE?
Another question: if I for example make the player unpassable all the time, even if I enter the vehicle, I don't care about its weird behavior, though when I get out from it, the player's bounding box is changed, it is much bigger now....why so? I try to adjust his bounding box again, c_setminmax(me), then vec_set(my.min_x.....) and so on, but the bounding box does not change to its normal scale. Even if I put the c_setminmax in the loop, the bounding box changes to the normal scale, but it attempts to change to that bigger scale every frame... So the player looks as if he is jumping slightly all the time.... How to fix it? Any ideas?
Thanks in advance


a generator of dull questions smile
Re: bonding box [Re: BastovBros] #300076
11/29/09 17:06
11/29/09 17:06
Joined: Oct 2009
Posts: 149
Germany
M
muffel Offline
Member
muffel  Offline
Member
M

Joined: Oct 2009
Posts: 149
Germany
Why you can't get unpassabble?
Are you using reset(me,PASSABLE) to make the player unpassable, or how do you do it?
muffel

Re: bonding box [Re: BastovBros] #300077
11/29/09 17:07
11/29/09 17:07
Joined: Aug 2009
Posts: 14
Everywhere
Webster_ Offline
Warez Kiddie
Webster_  Offline
Warez Kiddie

Joined: Aug 2009
Posts: 14
Everywhere
reset(me,PASSABLE);

Re: bonding box [Re: Webster_] #300078
11/29/09 17:14
11/29/09 17:14
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
Are your SURE you are using "reset(me,PASSABLE);" when the
ME pointer is set to the player (rather than the car)?

Easy mistake to make. Done it many times myself...


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: bonding box [Re: EvilSOB] #300090
11/29/09 18:03
11/29/09 18:03
Joined: Jul 2008
Posts: 128
Ukraine
BastovBros Offline OP
Member
BastovBros  Offline OP
Member

Joined: Jul 2008
Posts: 128
Ukraine
Never mind about the passable problem, I figured it out already, rather tell me please waht might be wrong with the bounding box? Why does it change its scale?


a generator of dull questions smile
Re: bonding box [Re: BastovBros] #300093
11/29/09 18:31
11/29/09 18:31
Joined: Jul 2004
Posts: 1,710
MMike Offline
Serious User
MMike  Offline
Serious User

Joined: Jul 2004
Posts: 1,710
ohh you forgot this i guess..
When you set the new values for the bounding box, as you stated above, you have to call update_hull(entity) i guess thats the name of the function.. other wise the bounding box wont get to its normal size so to say.

Re: bonding box [Re: MMike] #300094
11/29/09 18:55
11/29/09 18:55
Joined: Jul 2008
Posts: 128
Ukraine
BastovBros Offline OP
Member
BastovBros  Offline OP
Member

Joined: Jul 2008
Posts: 128
Ukraine
Emmm... better to say I didn't know about this laugh Anyways thanks, I'll try....


a generator of dull questions smile
Re: bonding box [Re: BastovBros] #300096
11/29/09 19:10
11/29/09 19:10
Joined: Jul 2004
Posts: 1,710
MMike Offline
Serious User
MMike  Offline
Serious User

Joined: Jul 2004
Posts: 1,710
Yeah sometimes it happens to me too...

dot forget to feedback.

Re: bonding box [Re: MMike] #300107
11/29/09 20:19
11/29/09 20:19
Joined: Jul 2008
Posts: 128
Ukraine
BastovBros Offline OP
Member
BastovBros  Offline OP
Member

Joined: Jul 2008
Posts: 128
Ukraine
I am "feedbacking": well, I think you mean c_updatehull , thogh , I don't think I need it, it takes a lot of fps and it is basically for changing the bounding box if the animation changes, e. g. if the player ducks ,then lies, then stands. So it will change the bounding box each frame as the player is running, which I don't need. I tried to write some new values for the bounding box and put the c_setminmax in the loop, and it now works fine... I think it was the engine bug or something... I hope it won't happen again, unless I understand why yhis happens.


a generator of dull questions smile
Re: bonding box [Re: BastovBros] #300116
11/29/09 21:32
11/29/09 21:32
Joined: Jul 2004
Posts: 1,710
MMike Offline
Serious User
MMike  Offline
Serious User

Joined: Jul 2004
Posts: 1,710
but if you change the c_setminmax i guess it requires the c_update too? no? each time you change the hull you must update the hull to fit that values, at least thats what i thought

Page 1 of 2 1 2

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