Add per-actor friction
- This is multiplied by the sector's friction. - This is intentionally not serialized yet, while awaiting feedback.
This commit is contained in:
parent
0f8a0020ed
commit
ea7ba9dba3
7 changed files with 47 additions and 18 deletions
|
|
@ -1297,6 +1297,17 @@ DEFINE_PROPERTY(gravity, F, Actor)
|
|||
defaults->gravity = i;
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
//==========================================================================
|
||||
DEFINE_PROPERTY(friction, F, Actor)
|
||||
{
|
||||
PROP_FIXED_PARM(i, 0);
|
||||
|
||||
if (i < 0) I_Error ("Friction must not be negative.");
|
||||
defaults->Friction = i;
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
//==========================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue