Changeset 920 for cpp/frams/neuro


Ignore:
Timestamp:
05/10/20 01:24:46 (4 years ago)
Author:
Maciej Komosinski
Message:

Hinges and a muscle for solid shapes in f0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/neuro/impl/neuroimpl-body-sdk.h

    r907 r920  
    11// This file is a part of Framsticks SDK.  http://www.framsticks.com/
    2 // Copyright (C) 1999-2015  Maciej Komosinski and Szymon Ulatowski.
     2// Copyright (C) 1999-2020  Maciej Komosinski and Szymon Ulatowski.
    33// See LICENSE.txt for details.
    44
     
    5757};
    5858
     59extern ParamEntry NI_SolidMuscle_tab[];
     60class NI_SolidMuscle : public NeuroImpl
     61{
     62public:
     63        paInt axis;
     64        NeuroImpl* makeNew() { return new NI_SolidMuscle(); } // for NeuroFactory
     65        NI_SolidMuscle() { paramentries = NI_SolidMuscle_tab; }
     66        int lateinit() { if (!neuro->joint) return 0; simorder = 2; return 1; }
     67        void go() {}
     68};
     69
    5970extern ParamEntry NI_LinearMuscle_tab[];
    6071class NI_LinearMuscle : public NeuroImpl
Note: See TracChangeset for help on using the changeset viewer.