Forums Gallery Downloads LOGIN |REGISTER

Location of the code calling the application of gravity

Please use this forum for questions on C++, Lua, XML, and any other languages used in CryENGINE development.


 

User avatar
da3dsoul
Senior Developer
Senior Developer
 
Posts: 868
Member since: 16.06.2010, 11:41
Location: West Lafayette, Indiana
Likes: 0

Location of the code calling the application of gravity

Postby da3dsoul » 02.02.2012, 18:39

Hello,
I'm trying to make something similar to gravity boots, and I was wondering where the call is to applying gravity to a physical entity.
User avatar
da3dsoul
Senior Developer
Senior Developer
 
Posts: 868
Member since: 16.06.2010, 11:41
Location: West Lafayette, Indiana
Likes: 0

Re: Location of the code calling the application of gravity

Postby da3dsoul » 03.02.2012, 12:54

Ok, so I found a function called UpdateGravity, which handles gravity in freefall, but I'm more going towards what makes the car cling to the road.
User avatar
Cry-Adam
Crytek Staff Member
Crytek Staff Member
 
Posts: 11296
Images: 182
Member since: 09.01.2008, 01:11
Location: Crytek HQ
Likes: 859

Re: Location of the code calling the application of gravity

Postby Cry-Adam » 03.02.2012, 13:02

Code: Select all
p_gravity_z = -13
:)

Defined in: SDK\Engine\Engine.pak\Config\CVarGroups\sys_spec_Physics.cfg

Image
Image
No dev/modding PM's please, use the forums! :)
Achievement Unlocked: Wear the Winter avatar all year.
User avatar
da3dsoul
Senior Developer
Senior Developer
 
Posts: 868
Member since: 16.06.2010, 11:41
Location: West Lafayette, Indiana
Likes: 0

Re: Location of the code calling the application of gravity

Postby da3dsoul » 03.02.2012, 16:44

ok, but that would be for constant axis directional gravity, I want to make it object specific (or disable it for an object and apply my own) and be able to apply it in any direction. Also, that is for the entire physical world, if I did make it controlled via script, then everything would follow a single object's gravitational vector.
User avatar
Cry-Adam
Crytek Staff Member
Crytek Staff Member
 
Posts: 11296
Images: 182
Member since: 09.01.2008, 01:11
Location: Crytek HQ
Likes: 859

Re: Location of the code calling the application of gravity

Postby Cry-Adam » 03.02.2012, 17:07

Ah ok, sorry, thought you meant global. Have you looked at how it was done for C1?

Image
Image
No dev/modding PM's please, use the forums! :)
Achievement Unlocked: Wear the Winter avatar all year.
User avatar
da3dsoul
Senior Developer
Senior Developer
 
Posts: 868
Member since: 16.06.2010, 11:41
Location: West Lafayette, Indiana
Likes: 0

Re: Location of the code calling the application of gravity

Postby da3dsoul » 03.02.2012, 17:29

No, I can't find the function(s). That is what I am asking for.

EDIT: Oh did you mean gravity boots for C1? No, I don't have the code source and the downloads section is non-existent.
User avatar
Ruan
Has seen it all
Has seen it all
 
Posts: 11741
Images: 0
Member since: 11.07.2008, 20:25
Location: Nottingham, UK
Likes: 93

Re: Location of the code calling the application of gravity

Postby Ruan » 03.02.2012, 18:30

Out now! CryENGINE Game Programming with C++, C#, and Lua
Ex-Crytek, now with Deep Silver Dambuster Studios
User avatar
da3dsoul
Senior Developer
Senior Developer
 
Posts: 868
Member since: 16.06.2010, 11:41
Location: West Lafayette, Indiana
Likes: 0

Re: Location of the code calling the application of gravity

Postby da3dsoul » 03.02.2012, 18:48

Thank You!!! Perks of having the website source, I guess.
User avatar
Ruan
Has seen it all
Has seen it all
 
Posts: 11741
Images: 0
Member since: 11.07.2008, 20:25
Location: Nottingham, UK
Likes: 93

Re: Location of the code calling the application of gravity

Postby Ruan » 03.02.2012, 18:54

Perks of seeing the download link in the footer with the old DDB ;)

downloads.php
Out now! CryENGINE Game Programming with C++, C#, and Lua
Ex-Crytek, now with Deep Silver Dambuster Studios
User avatar
da3dsoul
Senior Developer
Senior Developer
 
Posts: 868
Member since: 16.06.2010, 11:41
Location: West Lafayette, Indiana
Likes: 0

Re: Location of the code calling the application of gravity

Postby da3dsoul » 03.02.2012, 18:56

OH, thanks some more.


 
Connect and collaborate with CRYENGINE developers in the official Forums.
Visit the Gallery to share what you have created and be inspired by what others are creating with CRYENGINE.
Community