Gamestudio Links
Zorro Links
Newest Posts
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,394 guests, and 11 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19058 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
academic explanation of phent_setdamping #311108
02/18/10 16:30
02/18/10 16:30
Joined: Oct 2009
Posts: 49
L
Lecithin Offline OP
Newbie
Lecithin  Offline OP
Newbie
L

Joined: Oct 2009
Posts: 49
I am a school teacher and as I explain various functions to my students I need to understand them fully so that I'm able to teach them properly. I've come across phent_setdamping and I'm a bit confused. I understand it's used for airdrag/friction but don't quite understand the following;
1) is linear damping the force (air) directly opposing the movement of the entity? That is, if a ball is moving to the right the air is opposing the ball's movement and that opposition (air drag) is linear damping?
2) if that's the case with linear damping, what's up with angular damping? I'm not quite sure what the need is for angular damping... isn't it essential the same as linear damping except from another angle, what I mean is, if the ball is rolling to the right linear damping is opposing the ball's movement (air drag) so what exactly is angular damping doing?

Re: academic explanation of phent_setdamping [Re: Lecithin] #311121
02/18/10 17:02
02/18/10 17:02
Joined: Aug 2009
Posts: 1,438
Spain
painkiller Offline
Serious User
painkiller  Offline
Serious User

Joined: Aug 2009
Posts: 1,438
Spain
I think the way to simulate airdrag in the physics engine is very simple. I think the engine has one vector with the linear speed of the entity and other with the angular speed, and each frame, these vectors gets scaled to a factor depending of the linear and angular damping that you've set.


3D Gamestudio A8 Pro
AMD FX 8350 4.00 Ghz
16GB RAM
Gigabyte GeForce GTX 960 4GB
Re: academic explanation of phent_setdamping [Re: Lecithin] #311122
02/18/10 17:03
02/18/10 17:03
Joined: Oct 2009
Posts: 49
L
Lecithin Offline OP
Newbie
Lecithin  Offline OP
Newbie
L

Joined: Oct 2009
Posts: 49
I think I may have it, please confirm if I'm correct

linear damping is movement along the x, y, or z axis disregarding rotation (torque)

angular damping is movement along the x, y, or z axis regarding rotation (torque)

is that correct?

Re: academic explanation of phent_setdamping [Re: Lecithin] #311179
02/18/10 19:16
02/18/10 19:16
Joined: Aug 2009
Posts: 1,438
Spain
painkiller Offline
Serious User
painkiller  Offline
Serious User

Joined: Aug 2009
Posts: 1,438
Spain
linear damping affects only to the linear movement of the entity, and angular damping affects only to the rotation speed of the entity, so you can set linear damping to 0 and angular damping to 50 the entity will move indefinitely, but if you rotate the entity it will stop. If you set linear damping to 50 and angular damping to 0, the entity will stop moving after a while, and if oyu rotate the entity, it will continue rotating indifinitely.


3D Gamestudio A8 Pro
AMD FX 8350 4.00 Ghz
16GB RAM
Gigabyte GeForce GTX 960 4GB
Re: academic explanation of phent_setdamping [Re: painkiller] #311216
02/18/10 21:20
02/18/10 21:20
Joined: Oct 2009
Posts: 49
L
Lecithin Offline OP
Newbie
Lecithin  Offline OP
Newbie
L

Joined: Oct 2009
Posts: 49
thank you painkiller, that explanation is exactly what I was hoping for (and what I was trying to get at w/my second post). You've helped me a lot, thank you so much!

Re: academic explanation of phent_setdamping [Re: Lecithin] #311431
02/19/10 18:50
02/19/10 18:50
Joined: Aug 2009
Posts: 1,438
Spain
painkiller Offline
Serious User
painkiller  Offline
Serious User

Joined: Aug 2009
Posts: 1,438
Spain
you're welcome wink


3D Gamestudio A8 Pro
AMD FX 8350 4.00 Ghz
16GB RAM
Gigabyte GeForce GTX 960 4GB

Moderated by  HeelX, Spirit 

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