Changeset 1252


Ignore:
Timestamp:
06/22/23 03:25:02 (17 months ago)
Author:
Maciej Komosinski
Message:

Disallow Joint longitudal stiffness == 0.0 because then sticks can be stretched indefinitely with no resistance; now minimum allowed is 0.01

Location:
cpp/frams
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/config/f0-SDK.def

    r1186 r1252  
    6262PROP(hyn,1,0,hinge y negative limit,f,-6.2832,0,-1.5708,hinge_limit_y[0])
    6363PROP(hyp,1,1024,hinge y positive limit,f,0,6.2832,1.5708,hinge_limit_y[1])
    64 XPROP(stif,2,0,stiffness,f,0.0,1.0,1.0,stif)
     64XPROP(stif,2,0,stiffness,f,0.01,1.0,1.0,stif)
    6565XPROP(rotstif,2,0,rotation stiffness,f,0.0,1.0,1.0,rotstif)
    6666PROP(stam,2,0,stamina,f,0.0,1.0,0.25,stamina)
     
    9090PROP(hyn,1,0,hinge y negative limit,f,-6.2832,0,-1.5708,hinge_limit_y[0])
    9191PROP(hyp,1,1024,hinge y positive limit,f,0,6.2832,1.5708,hinge_limit_y[1])
    92 XPROP(stif,2,0,stiffness,f,0.0,1.0,1.0,stif)
     92XPROP(stif,2,0,stiffness,f,0.01,1.0,1.0,stif)
    9393XPROP(rotstif,2,0,rotation stiffness,f,0.0,1.0,1.0,rotstif)
    9494PROP(stam,2,0,stamina,f,0.0,1.0,0.25,stamina)
  • cpp/frams/config/f0.def

    r1186 r1252  
    6262PROP(hyn,1,0,hinge y negative limit,f,-6.2832,0,-1.5708,hinge_limit_y[0])
    6363PROP(hyp,1,1024,hinge y positive limit,f,0,6.2832,1.5708,hinge_limit_y[1])
    64 XPROP(stif,2,0,stiffness,f,0.0,1.0,1.0,stif)
     64XPROP(stif,2,0,stiffness,f,0.01,1.0,1.0,stif)
    6565XPROP(rotstif,2,0,rotation stiffness,f,0.0,1.0,1.0,rotstif)
    6666PROP(stam,2,0,stamina,f,0.0,1.0,0.25,stamina)
     
    9090PROP(hyn,1,0,hinge y negative limit,f,-6.2832,0,-1.5708,hinge_limit_y[0])
    9191PROP(hyp,1,1024,hinge y positive limit,f,0,6.2832,1.5708,hinge_limit_y[1])
    92 XPROP(stif,2,0,stiffness,f,0.0,1.0,1.0,stif)
     92XPROP(stif,2,0,stiffness,f,0.01,1.0,1.0,stif)
    9393XPROP(rotstif,2,0,rotation stiffness,f,0.0,1.0,1.0,rotstif)
    9494PROP(stam,2,0,stamina,f,0.0,1.0,0.25,stamina)
  • cpp/frams/model/defassign-f0-SDK.h

    r1183 r1252  
    11// This file is a part of Framsticks SDK.  http://www.framsticks.com/
    2 // Copyright (C) 1999-2022  Maciej Komosinski and Szymon Ulatowski.
     2// Copyright (C) 1999-2023  Maciej Komosinski and Szymon Ulatowski.
    33// See LICENSE.txt for details.
    44
  • cpp/frams/model/f0-SDK-classes.h

    r1186 r1252  
    107107 {"hyn",1,0,"hinge y negative limit","f -6.2832 0 -1.5708",FIELD(hinge_limit_y[0]),},
    108108 {"hyp",1,1024,"hinge y positive limit","f 0 6.2832 1.5708",FIELD(hinge_limit_y[1]),},
    109  {"stif",2,0,"stiffness","f 0.0 1.0 1.0",FIELD(stif),},
     109 {"stif",2,0,"stiffness","f 0.01 1.0 1.0",FIELD(stif),},
    110110 {"rotstif",2,0,"rotation stiffness","f 0.0 1.0 1.0",FIELD(rotstif),},
    111111 {"stam",2,0,"stamina","f 0.0 1.0 0.25",FIELD(stamina),},
     
    120120{
    121121 {"Extra properties",1,5,"j"},
    122  {"stif",0,0,"stiffness","f 0.0 1.0 1.0",FIELD(stif),},
     122 {"stif",0,0,"stiffness","f 0.01 1.0 1.0",FIELD(stif),},
    123123 {"rotstif",0,0,"rotation stiffness","f 0.0 1.0 1.0",FIELD(rotstif),},
    124124 {"vr",0,0,"red component","f 0.0 1.0 0.5",FIELD(vcolor.x),},
     
    150150 {"hyn",1,0,"hinge y negative limit","f -6.2832 0 -1.5708",FIELD(hinge_limit_y[0]),},
    151151 {"hyp",1,1024,"hinge y positive limit","f 0 6.2832 1.5708",FIELD(hinge_limit_y[1]),},
    152  {"stif",2,0,"stiffness","f 0.0 1.0 1.0",FIELD(stif),},
     152 {"stif",2,0,"stiffness","f 0.01 1.0 1.0",FIELD(stif),},
    153153 {"rotstif",2,0,"rotation stiffness","f 0.0 1.0 1.0",FIELD(rotstif),},
    154154 {"stam",2,0,"stamina","f 0.0 1.0 0.25",FIELD(stamina),},
     
    163163{
    164164 {"Extra properties",1,5,"j"},
    165  {"stif",0,0,"stiffness","f 0.0 1.0 1.0",FIELD(stif),},
     165 {"stif",0,0,"stiffness","f 0.01 1.0 1.0",FIELD(stif),},
    166166 {"rotstif",0,0,"rotation stiffness","f 0.0 1.0 1.0",FIELD(rotstif),},
    167167 {"vr",0,0,"red component","f 0.0 1.0 0.5",FIELD(vcolor.x),},
Note: See TracChangeset for help on using the changeset viewer.