Gamestudio Links
Zorro Links
Newest Posts
Max Number of Strategies in /Strategy folder
by Martin_HH. 06/16/26 11:13
Z9 getting Error 058
by jcl. 06/16/26 09:51
How to select between IB accounts by script?
by AndrewAMD. 06/13/26 15:44
Zorro tutorial ideas?
by AndrewAMD. 06/13/26 15:01
Zorro 3.01 recoded MMI function issue
by 11honza11. 06/13/26 11:40
Stooq now requires an API key
by AndrewAMD. 06/11/26 17:55
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (TipmyPip, Martin_HH), 2,979 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Student_64151, Koti, curry, DeepxKalsi, Samed
19219 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
gravity #314935
03/12/10 08:51
03/12/10 08:51
Joined: Jan 2005
Posts: 282
devon UK
D
DAVIDMORETON Offline OP
Member
DAVIDMORETON  Offline OP
Member
D

Joined: Jan 2005
Posts: 282
devon UK
Hi Gamers,
I need to switch gravity off and on again (as player climbs a ladder) Any ideas as to how this can be done? Can not find anything about gravity in the manual.
Hopefully, David

Re: gravity [Re: DAVIDMORETON] #314936
03/12/10 09:37
03/12/10 09:37
Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Pappenheimer Offline
Senior Expert
Pappenheimer  Offline
Senior Expert

Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Look for c_move in the manual, within that article there is a movement code with gravity.
You won't find anything with 'gravity', because it is handled with c_trace.
Means, a trace is sent from the models origin to a point beneath it, and then in the c_move instruction a value is subtract from the entities z value as long as it doesn't touch the ground, means doesn't reach a set minimal height position above the ground.
That's not easy to understand, but, if you want learn the coding in 3DGS and its handling of collision, you should have a close look at the example code in the c_move article.

Re: gravity [Re: Pappenheimer] #314989
03/12/10 16:22
03/12/10 16:22
Joined: Jan 2005
Posts: 282
devon UK
D
DAVIDMORETON Offline OP
Member
DAVIDMORETON  Offline OP
Member
D

Joined: Jan 2005
Posts: 282
devon UK
Thanks very much for your help Pappenheimer, I will study the section in the manual you mentioned - I hope I understand it!!
I cheated and put an invisible wmb block at the foot of the ladder, giving it and the player a lift type action and got the player up that way. Will try and do it propely
David.


Moderated by  HeelX, rvL_eXile 

Gamestudio download | 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