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 (TedMar), 1,420 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Collision detection only working at origin #83578
07/28/06 06:07
07/28/06 06:07
Joined: Dec 2003
Posts: 179
Chameleon_Man Offline OP
Member
Chameleon_Man  Offline OP
Member

Joined: Dec 2003
Posts: 179
Hey guys, Im using c_move and c_trace, and my collision detection for gravity doesn't work. The player sinks into the ground until it hits the origin of the players coordinates. What could be the problem?

Re: Collision detection only working at origin [Re: Chameleon_Man] #83579
07/28/06 09:27
07/28/06 09:27
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
If you don't post some code we cannot help you.
I guess there is a problem with the c_trace however I'd like to see the gravity part of your script.
So please post it here and we might be able to help you.

Re: Collision detection only working at origin [Re: Xarthor] #83580
07/28/06 09:37
07/28/06 09:37
Joined: Sep 2003
Posts: 4,959
US
G
Grimber Offline
Expert
Grimber  Offline
Expert
G

Joined: Sep 2003
Posts: 4,959
US
my first guess is your using USE_BOX in the trace code mode, which doesn't work the same how it did with the older trace

you will ahve to trace from the min_z down or subtract the origin.z to min_z distance from result of the trace to get the similar result

Re: Collision detection only working at origin [Re: Chameleon_Man] #83581
07/28/06 10:21
07/28/06 10:21
Joined: Jan 2006
Posts: 968
EpsiloN Offline
User
EpsiloN  Offline
User

Joined: Jan 2006
Posts: 968
Usualy what I do (I'm not using min_z,dunno why ) is look at the possition of my model in WED(the parameters in the properties window) and then point with the mouse at his feet,this gives me the distance from the origin to the end of the model,and then in the trace I dont trace from my.z but from my.z - the value that I calculated between the .z and the end of the model. And also with use_box


Extensive Multiplayer tutorial:
http://mesetts.com/index.php?page=201
Re: Collision detection only working at origin [Re: EpsiloN] #83582
07/28/06 15:10
07/28/06 15:10
Joined: Dec 2003
Posts: 179
Chameleon_Man Offline OP
Member
Chameleon_Man  Offline OP
Member

Joined: Dec 2003
Posts: 179
Thanks for the help guys. Here's my code...

c_move(me,vector(4*(key_cuu-key_cud),4*(key_cul-key_cur),0),vector(0,0,-1),GLIDE || IGNORE_MODELS || USE_BOX);

I fixed the problem. That's quite interesting USE_BOX isn't the same since the last update, because now that I think of it, that's when I really started having the problem.


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