Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by Zheka. 06/20/24 14:26
Lapsa's very own thread
by rki. 06/19/24 11:27
A simple game ...
by VoroneTZ. 06/18/24 10:50
Face player all the time ...
by bbn1982. 06/18/24 10:25
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,298 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mino, squik, AemStones, LucasJoshua, Baklazhan
19061 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Which is the best movement system, C or ent move ? #140150
07/08/07 22:22
07/08/07 22:22
Joined: Jul 2007
Posts: 50
N
Nomad Offline OP
Junior Member
Nomad  Offline OP
Junior Member
N

Joined: Jul 2007
Posts: 50
I have been using gamestudio for a year now and go from c_script movment to
ent move.
I like both for what each offer but dont like it that I cant get gravity
to work on model surface terrain entities.
Collision works most times but is not reliable so really, whats the point with c move?
Can I have your advice please?

Re: Which is the best movement system, C or ent mo [Re: Nomad] #140151
07/09/07 02:06
07/09/07 02:06
Joined: Aug 2000
Posts: 7,490
O
Orange Brat Offline

Senior Expert
Orange Brat  Offline

Senior Expert
O

Joined: Aug 2000
Posts: 7,490
The c_instructions were created for use with the new ABT scene management (because they require the methods created in them for correct collision...you're player will walk through geometry is you use the original technique in an ABT build), although you can use them with BSP, too. Ent_move is deprecated and will be removed from the engine; however you can still use it's functionality with c_move by setting enable_polycollision to 0.5 and making sure you setting the c_instructions flag to USE_AABB (along with whatever flags you sest). New collision is the newer OBB. Consult c_move in the manual for particulars. AABB is faster but doesn't allow per poly collision or access to the newer collision techniques and according to the A7 manual is now a Pro feature only (along with BSP scene management). However, if you're using "old school" bounding boxes (and A4-mid-A6 code) then it's what you'll want to use.

Quote:

USE_AABB P Uses an axis aligned bounding box (AABB) for collision, rather than an oriented bounding box (OBB). The AABB system is faster, but ignores the entity orientation on USE_BOX, treats models and sprites as boxes, and requires a BSP level. See collision for the difference between both systems.





My User Contributions master list - my initial post links are down but scroll down page to find list to active links
Re: Which is the best movement system, C or ent mo [Re: Nomad] #140152
07/09/07 16:10
07/09/07 16:10
Joined: Oct 2003
Posts: 827
22�21'24"N 114�07'30"E
Frederick_Lim Offline
User
Frederick_Lim  Offline
User

Joined: Oct 2003
Posts: 827
22�21'24"N 114�07'30"E
I am also fighting with this recently, and now I can get the collision reliable on block or terrain slope.

Slope test

Control: 1-5 select camera, WASD movement, cursor left/right to turn.

I use engine default setting, I don't know is it correct but base on trial and error I discover that don't set the model too high from origin, if your model is a vehicle. Lower from the origin a bit, see the ma1.mdl in the zip.

Subtract the "distance to grand" calculation a little, like -5.5 in my example, otherwise the model will sink in the ground. so the model raise a bit to the ground. Now the model "touch" the ground nicely.

Code:
ext_force.z = max(-35*time_step, -(c_trace(my.x, temp.x, ignore_me|use_box)-5.5));



I am a newbie I don't know if there are better solution, I'd like to know the best practice as well, so any advise are welcome.

Re: Which is the best movement system, C or ent mo [Re: Frederick_Lim] #140153
07/10/07 02:20
07/10/07 02:20
Joined: Jul 2007
Posts: 50
N
Nomad Offline OP
Junior Member
Nomad  Offline OP
Junior Member
N

Joined: Jul 2007
Posts: 50
Thank you both very much.
I can see I have a lot more study to do yet with the new systems.

Will download your example Frederick_Lim and study it as well, hopefully I will be able to progress and firm up on the most effective system I can manage.

Shame to see ent_move system go though, works so well.

Re: Which is the best movement system, C or ent mo [Re: Nomad] #140154
07/10/07 06:26
07/10/07 06:26
Joined: Oct 2003
Posts: 827
22�21'24"N 114�07'30"E
Frederick_Lim Offline
User
Frederick_Lim  Offline
User

Joined: Oct 2003
Posts: 827
22�21'24"N 114�07'30"E
You are welcome Nomad. I am still learning and my example is based on AUM and other forum snippets, but still not achieve reliable collision. There are too few tips about collision with slope and terrain.

And I just tested if I set the collision hull to symmetrical in all side, I think this way the collision shape will become spherical, the collision work more smoothly when the entity move between the terrain and level block, no shake no jump. I uploaded another example lets study together.

Slope Test 2

Re: Which is the best movement system, C or ent mo [Re: Frederick_Lim] #140155
07/10/07 07:52
07/10/07 07:52
Joined: Mar 2003
Posts: 4,264
Wellington
Nems Offline

.
Nems  Offline

.

Joined: Mar 2003
Posts: 4,264
Wellington
var disable_z.glide could help.
At default model sizes 1 is suppossed to stop all climbing (depends on the models scale/size) 2, limited to 45 degrees if I recall right and 3, maybe 60 degrees.

Cheers.

Re: Which is the best movement system, C or ent mo [Re: Frederick_Lim] #140156
07/12/07 09:35
07/12/07 09:35
Joined: Jul 2007
Posts: 50
N
Nomad Offline OP
Junior Member
Nomad  Offline OP
Junior Member
N

Joined: Jul 2007
Posts: 50
Thanks again Frederick_Lim, your code example is great, everything works as it should.
Interesting to note though that when I had a camera inside of the player function, the camera lagged terribly but when I used an external camera, it worked flawlesly. It also lagged when I disabled stencil_shadow!
Lost about 20 fps though.

To auto set your bounding box, simply apply c setminmax me after your fat and narrow flags and after a wait 1.

I am still developing from it as a base to my Game script but all creds to you.

Later...

**PS voted you 5 stars for your great help

Last edited by Nomad; 07/12/07 09:38.

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