|
Center of Mass
#310993
02/18/10 03:39
02/18/10 03:39
|
Joined: Feb 2008
Posts: 18
davinski
OP
Newbie
|
OP
Newbie
Joined: Feb 2008
Posts: 18
|
Hey Community i have a short question is it possible to give a object a different center of mass for example you have a model and in reality its heavier like at its feet so the center of mass is not in the actual center of the object, so can you change to center of mass so that the mass is focused on another point or do you guys have a trick to make a model heavier at its feet? Thx CodeWarrior
GameStudio A7 Extraultitech - Ultimative Technology
|
|
|
Re: Center of Mass
[Re: davinski]
#311111
02/18/10 16:39
02/18/10 16:39
|
Joined: Aug 2009
Posts: 1,438 Spain
painkiller
Serious User
|
Serious User
Joined: Aug 2009
Posts: 1,438
Spain
|
Hi, to change the mass' center I only know to change in the function phent_setmass ( entity, var mass, var hulltype ); through the different types of hull and you get different center of mass, but i don't know if you can set a mass' center manually.
Last edited by painkiller; 02/18/10 16:39.
3D Gamestudio A8 Pro AMD FX 8350 4.00 Ghz 16GB RAM Gigabyte GeForce GTX 960 4GB
|
|
|
Re: Center of Mass
[Re: painkiller]
#311113
02/18/10 16:43
02/18/10 16:43
|
Joined: Feb 2010
Posts: 457 Norfolk,England
mikaldinho
Senior Member
|
Senior Member
Joined: Feb 2010
Posts: 457
Norfolk,England
|
function phent_setmass ( entity, var mass, var hulltype );.
could you quote what something you are holding? E.G sword?
Last edited by mikaldinho; 02/18/10 16:53.
|
|
|
Re: Center of Mass
[Re: mikaldinho]
#311117
02/18/10 16:48
02/18/10 16:48
|
Joined: Aug 2009
Posts: 1,438 Spain
painkiller
Serious User
|
Serious User
Joined: Aug 2009
Posts: 1,438
Spain
|
sorry, I don't understand your question
3D Gamestudio A8 Pro AMD FX 8350 4.00 Ghz 16GB RAM Gigabyte GeForce GTX 960 4GB
|
|
|
Re: Center of Mass
[Re: mikaldinho]
#311125
02/18/10 17:07
02/18/10 17:07
|
Joined: Aug 2009
Posts: 1,438 Spain
painkiller
Serious User
|
Serious User
Joined: Aug 2009
Posts: 1,438
Spain
|
yes, but the entity that holds the object must be also a physics entity and you have to set constraits, here you have more info about it: http://www.conitec.net/beta/ph_constraints.htm
3D Gamestudio A8 Pro AMD FX 8350 4.00 Ghz 16GB RAM Gigabyte GeForce GTX 960 4GB
|
|
|
Re: Center of Mass
[Re: mikaldinho]
#311240
02/19/10 02:21
02/19/10 02:21
|
Joined: Feb 2008
Posts: 18
davinski
OP
Newbie
|
OP
Newbie
Joined: Feb 2008
Posts: 18
|
@painkiller thanks for the reply c my problem is that i want to make a racing game with good physics 4 the cars, means they should be heavier where the engine is so that they dont flip over too easily. Since now I have the car body and 4 wheels physicly being attached to the car. But the car still flips over to easy any advise?
GameStudio A7 Extraultitech - Ultimative Technology
|
|
|
Re: Center of Mass
[Re: mikaldinho]
#311500
02/20/10 03:42
02/20/10 03:42
|
Joined: Feb 2008
Posts: 18
davinski
OP
Newbie
|
OP
Newbie
Joined: Feb 2008
Posts: 18
|
so make them as extra parts? I mean split the car up in engine, body and wheels?
GameStudio A7 Extraultitech - Ultimative Technology
|
|
|
|