File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
Extensions/Physics3DBehavior Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -1270,7 +1270,7 @@ module.exports = {
12701270 . addParameter ( 'expression' , _ ( 'Application point on Z axis' ) )
12711271 . setParameterLongDescription (
12721272 _ (
1273- 'Use `MassCenterX` and `MassCenterY ` expressions to avoid any rotation.'
1273+ 'Use `MassCenterX`, `MassCenterY` and `MassCenterZ ` expressions to avoid any rotation.'
12741274 )
12751275 )
12761276 . getCodeExtraInformation ( )
@@ -1544,6 +1544,19 @@ module.exports = {
15441544 . addParameter ( 'behavior' , _ ( 'Behavior' ) , 'Physics3DBehavior' )
15451545 . getCodeExtraInformation ( )
15461546 . setFunctionName ( 'getMassCenterY' ) ;
1547+
1548+ aut
1549+ . addExpression (
1550+ 'MassCenterZ' ,
1551+ _ ( 'Mass center Z' ) ,
1552+ _ ( 'Mass center Z' ) ,
1553+ '' ,
1554+ 'JsPlatform/Extensions/physics3d.svg'
1555+ )
1556+ . addParameter ( 'object' , _ ( 'Object' ) , '' , false )
1557+ . addParameter ( 'behavior' , _ ( 'Behavior' ) , 'Physics3DBehavior' )
1558+ . getCodeExtraInformation ( )
1559+ . setFunctionName ( 'getMassCenterZ' ) ;
15471560 }
15481561 // Collision
15491562 extension
You can’t perform that action at this time.
0 commit comments