Hard Light Productions Forums
Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Nightly Builds => Topic started by: SirKnightly on August 04, 2010, 03:36:16 pm
-
Here is the nightly for Windows on 04 Aug 2010 - Revision 6348
Group: SSE2
fso-WIN-SSE2-20100804_r6348.7z (http://swc.fs2downloads.com/builds/WIN/fso-WIN-SSE2-20100804_r6348.7z)
MD5Sum (http://swc.fs2downloads.com/builds/WIN/fso-WIN-SSE2-20100804_r6348.md5)
Group: Standard
fso-WIN-Standard-20100804_r6348.7z (http://swc.fs2downloads.com/builds/WIN/fso-WIN-Standard-20100804_r6348.7z)
MD5Sum (http://swc.fs2downloads.com/builds/WIN/fso-WIN-Standard-20100804_r6348.md5)
Group: Inferno_SSE
fso-WIN-Inferno_SSE-20100804_r6348.7z (http://swc.fs2downloads.com/builds/WIN/fso-WIN-Inferno_SSE-20100804_r6348.7z)
MD5Sum (http://swc.fs2downloads.com/builds/WIN/fso-WIN-Inferno_SSE-20100804_r6348.md5)
Group: Inferno_SSE2
fso-WIN-Inferno_SSE2-20100804_r6348.7z (http://swc.fs2downloads.com/builds/WIN/fso-WIN-Inferno_SSE2-20100804_r6348.7z)
MD5Sum (http://swc.fs2downloads.com/builds/WIN/fso-WIN-Inferno_SSE2-20100804_r6348.md5)
------------------------------------------------------------------------
r6347 | Sushi | 2010-08-03 21:08:14 -0500 (Tue, 03 Aug 2010) | 6 lines
Changed paths:
M /trunk/fs2_open/code/object/collideshipship.cpp
M /trunk/fs2_open/code/ship/ship.cpp
M /trunk/fs2_open/code/ship/ship.h
Added to ships.tbl:
$Collision Physics:
+Bounce
+Both Small Bounce
+Friction
+Rotation Factor
------------------------------------------------------------------------
r6348 | karajorma | 2010-08-04 12:44:40 -0500 (Wed, 04 Aug 2010) | 1 line
Changed paths:
M /trunk/fs2_open/code/parse/sexp.cpp
Fix 4 more SEXPs for multiplayer.
------------------------------------------------------------------------
-
Collision physics sound incredible, can we get a detailed documentation where to put these lines and what they exactly do?
-
What he said.
I asked on IRC but nobody knew anything about it either.
-
The idea was to allow landing surfaces like in a Battlestar, so you don't bounce off the ship, but instead slide along the surface. Bounce is an intentional, previously hardcoded effect. I know Diaspora wanted it so I'll try to get some docs to the Wiki for it from them.
Here's what I can infer from the code.
All four values below Collision physics accept floats. Both bounce and both_small_bounce have a retail default of 5.0. Friction is 0.0. rotation factor is 0.2.
Upon collision, if both colliding ships are small, and one is a player ship, both_small_bounce is the factor used.
If both ships are small and neither is the player, there does not seem to be a bounce at all.
If one ship is large, the regular bounce factor is used.
I can't really explain what friction or rotation factor do, and apparently Sushi didn't understand the rotation factor based on his comments, he merely exposed the value to the modder to experiment with. I believe friction will somehow slow your movement as you'd expect when there is no bounce, and you are instead gliding along the surface of the ship.
Also, $Collision Physics: itself takes no arguments, just the presence of one or more of the flags below it.