Author Topic: Nightly (Windows): 04 Aug 2010 - Revision 6348  (Read 1555 times)

0 Members and 1 Guest are viewing this topic.

Offline SirKnightly

  • George or Keira?
  • 212
Nightly (Windows): 04 Aug 2010 - Revision 6348
Here is the nightly for Windows on 04 Aug 2010 - Revision 6348

Group: SSE2
fso-WIN-SSE2-20100804_r6348.7z
MD5Sum

Group: Standard
fso-WIN-Standard-20100804_r6348.7z
MD5Sum

Group: Inferno_SSE
fso-WIN-Inferno_SSE-20100804_r6348.7z
MD5Sum

Group: Inferno_SSE2
fso-WIN-Inferno_SSE2-20100804_r6348.7z
MD5Sum

Code: [Select]
------------------------------------------------------------------------
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.
------------------------------------------------------------------------



 

Offline Dragon

  • Citation needed
  • 212
  • The sky is the limit.
Re: Nightly (Windows): 04 Aug 2010 - Revision 6348
Collision physics sound incredible, can we get a detailed documentation where to put these lines and what they exactly do?

 

Offline Aardwolf

  • 211
  • Posts: 16,384
Re: Nightly (Windows): 04 Aug 2010 - Revision 6348
What he said.

I asked on IRC but nobody knew anything about it either.

  

Offline chief1983

  • Still lacks a custom title
  • Moderator
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
Re: Nightly (Windows): 04 Aug 2010 - Revision 6348
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.
« Last Edit: August 09, 2010, 02:06:26 pm by chief1983 »
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays