SMG CollidableMovingObject

From SIMboxWiki
Jump to navigation Jump to search

The CollidableMovingObject logic component is responsible for an object that would be moved and rotated by the physics engine.

Type: Logic Object Component
File: SMG_CollidableMovingObject.slc
Version: 450.1000.355.1


back to top

Icon properties.png Properties

NameDescriptionMaxValueMinValueDisplayNameUnitTypeUnitName
PROP_AGL_HEIGHT  Object AGL Height.  AGL Height  Default  Default 
PROP_ANGULAR_DAMPING  The physics engine angular damping  100    Default  Default 
PROP_HEADING  Object heading  Heading  Default  Default 
PROP_IS_AGL  Indicates if PROP_AGL_HEIGHT should be used.  Use AGL height  Default  Default 
PROP_IS_FULL_PHYSICS_SIMULATE  Is only physics engine do the calculation (use for full physics vehicles)    Default  Default 
PROP_LATITUDE  Object Latitude  Latitude  Default  Default 
PROP_LINEAR_DAMPING  The linear velocity damping due to air - resistance    Default  Default 
PROP_LONGITUDE  Object Longitude  Longitude  Default  Default 
PROP_OBJECT_IMPACT_BLOCKING_FACTOR  The blocking factor of an impact wave [0 to 1]    Default  Default 
PROP_OBJECT_OPAL_FILE_NAME  The object discription in OPAL format    File System  File 
PROP_OBJECT_REFFERANCE_AREA  The refferance area used for explosion force [m*m]  10000    Default  Default 
PROP_SMG_HEIGHT_CORRECTION  Height correction  100  -100  Height Correction  Default  Default 
PROP_SMG_IS_CREATING_TILES  Is to create tiles to the object?    Default  Default 
PROP_XPOSITION  Object X Position    Default  Default 
PROP_YPOSITION  Object Y Position    Default  Default 
PROP_ZPOSITION  Object Z Position  Altitude  Default  Default 

back to top

Icon attributes.png Attributes

NameDescriptionParam1Param2DisplayNameUnitTypeUnitName
ATT_ABS_VELOCITY  Absolute velocity  float &      Speed  Meter Per Second 
ATT_ANG_ACCELERATION  ATT_ANG_ACCELERATION  AngularVec &      Default  Default 
ATT_ANG_VELOCITY  ATT_ANG_VELOCITY  AngularVec &      Default  Default 
ATT_BODY_ACCELERATION  The acceleration in body coordinates  LinearVec &      Acceleration  Meter Per Second Squared 
ATT_BODY_FORCES_NO_G  The total body forces applied, except Gravity [Nt]  LinearVec &      Force  Newton 
ATT_BODY_MOMENTS  The total body moment [Nt*m]  LinearVec &      Torque  Newton Meter 
ATT_BODY_VELOCITY  The velocity in body coordinates  LinearVec &      Speed  Meter Per Second 
ATT_COLLIDABLE_MOVING_OBJECT_IS_ACTIVE  Is the SLC active?  bool &      Default  Default 
ATT_COLLIDABLE_SOLIDS_NAMES  The object's solids names list   const int  string &    Default  Default 
ATT_COLLIDABLE_SOLIDS_SIMULATION_POINTERS  The physics engine solids pointers list  const int  int &    Default  Default 
ATT_COLLIDABLE_SOLIDS_WORLD_POSITION  The solids world position  const int  LinearVec &    Default  Default 
ATT_COLLIDABLE_SOLIDS_WORLD_VELOCITY  The solids body velocity  const int  LinearVec &    Default  Default 
ATT_GEARED_MOTORS_MAX_SPEED  The geared motors max speed  const int  float &    Angular Velocity  RPM 
ATT_HEIGHT_ABOVE_GROUND  Returns the height above ground [m]   float &      Length  Meter 
ATT_LATITUDE  Entity Latitude [rad]  double &      Angle  Radian 
ATT_LIN_ACCELERATION  The acceleration in world coordinates  LinearVec &      Acceleration  Meter Per Second Squared 
ATT_LIN_VELOCITY  The velocity in world coordinates  LinearVec &      Speed  Meter Per Second 
ATT_LOCATION  Location (x,y,z,pitch,roll,yaw)  Location &      Coordinate System  Local 
ATT_LONGITUDE  Entity Longitude [rad]  double &      Angle  Radian 
ATT_ORIENTATION  Orientation (pitch,roll,yaw)  AngularVec &      Default  Default 
ATT_POSITION  Position (x,y,z)  LinearVec &      Coordinate System  Local 
ATT_REQUIRED_ORIENTATION  The required body orientation  AngularVec &      Default  Default 
ATT_SERVO_MOTORS_LIMITS  The servo motors limits. (X) - Low, (Y) - High, (Z) - Are limit enabled   const int  LinearVec &    Default  Default 
ATT_SMG_FRONT_WHEEL_RADIUS  The wheel physical radius  float &      Length  Meter 
ATT_SMG_INERTIA  OPAL's moments of inertia  LinearVec &      Default  Default 
ATT_SMG_PHYSICS_IS_COLLIDABLE  Tells if the object is collidable in the physics engine space  bool &      Default  Default 
ATT_SMG_PHYSICS_IS_STATIC  Tells if the object can move in the physical engine space  bool &      Default  Default 
ATT_SMG_PHYSICS_TERRAIN_HEIGHT  The opal terrain height, including other objects   float &      Length  Meter 
ATT_SMG_SOLID_POINTER  The pointer to the opal solid  int &      Default  Default 
ATT_SMG_SUBPART_ANGULAR_VELOCITY  The subpart angular velocity  const int  LinearVec &    Angular Velocity  RPM 
ATT_SMG_SUBPART_LOCATION  The subparts location  const int  Location &    Default  Default 
ATT_SMG_SUBPART_NAME  The physical subpart names  const int  string &    Default  Default 
ATT_SMG_TOTAL_MASS  The mass  float &      Mass  KG 
ATT_TRUE_HEADING  True heading  float &      Angle  Degree 

back to top

Icon actions.png Actions

NameDescriptionParam1Param2DisplayNameUnitTypeUnitName
ACTION_COLLIDABLE_MOVING_OBJECT_SET_ACTIVE  Activate / Deactivate the physical object  const bool      Default  Default 
ACTION_DESTROY_MOVING_OBJECT  Destorys the solid        Default  Default 
ACTION_SET_ANG_VELOCITY  Sets an angular velocity to the object  const AngularVec &      Default  Default 
ACTION_SET_ANGULAR_DAMPING  Sets an angular dapming factor fot the solid  const float      Default  Default 
ACTION_SET_EXTERNAL_FORCE  Sets external force  const LinearVec &      Default  Default 
ACTION_SET_EXTERNAL_MOMENT  Sets external moment  const LinearVec &      Default  Default 
ACTION_SET_GEARED_MOTOR_BRAKE_CMD  Sets a brake command to a geared motor according to the order in the .sphy file  const int  const float    Default  Default 
ACTION_SET_GEARED_MOTOR_RATIO  Sets a ratio for the geared motor. The maximal torqe is multimplied by the ratio, and the maximal speed is devided  const int  const float    Default  Default 
ACTION_SET_GEARED_MOTOR_THROTTLE_CMD  Sets a throttle command to a geared motor according to the order in the .sphy file  const int  const float    Default  Default 
ACTION_SET_LIN_VELOCITY  Sets a linear velocity to the object  const LinearVec &      Speed  Meter Per Second 
ACTION_SET_LOCATION  Sets a new location to the object  const Location &      Default  Default 
ACTION_SET_REQUIRED_ORIENTATION  Sets the required body orientation  const AngularVec &      Default  Default 
ACTION_SET_SERVO_REQUIRED_ANGLE_CMD  Sets a required angle command to a servo motor according to the index in the .sphy file   const int  const float    Angle  Degree 
INPUT_APPLY_POSITIVE_TORQUE_0|INPUT_APPLY_POSITIVE_TORQUE_0  Continuously lowering the flaps angle as long as the key is pressed  const int  const int    Default  Default 
INPUT_APPLY_POSITIVE_TORQUE_1|INPUT_APPLY_POSITIVE_TORQUE_1  Continuously lowering the flaps angle as long as the key is pressed  const int  const int    Default  Default 
INPUT_APPLY_POSITIVE_TORQUE_2|INPUT_APPLY_POSITIVE_TORQUE_2  Continuously lowering the flaps angle as long as the key is pressed  const int  const int    Default  Default 
INPUT_SMG_BRAKE_JOINT  Brakes a joint  const int  const int    Default  Default 
INPUT_SMG_JUMP  Jump  const int  const int    Default  Default 
INPUT_SMG_SCENARIO_POSITION_RESET  Puts the object in the original scenario position   const int  const int    Default  Default 
INPUT_SMG_STOP_START_EXTERNAL_FROCE  Stops / Starts external force  const int  const int    Default  Default 

back to top

Icon attributes.png Required Attributes

Name
ATT_HEADING_TRUE 
ATT_IS_GROUND_OBJECT 
ATT_IS_IN_MOTION 
ATT_IS_ON_GROUND 
ATT_IS_SEA_OBJECT 

back to top

Icon actions.png Required Actions

Name
ACTION_COLLISION_HANDLER_SET_ACTIVE 
ACTION_COLLISION_HANDLER_SET_SOLID_POINTER 
ACTION_SMG_SG_START_EFFECTS 

back to top