Skip to content

Commit b4984cb

Browse files
committed
update tutorial examples
1 parent d9a6ea2 commit b4984cb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/Tutorial/BouncingSphere.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ using Modia
55
BouncingSphere = Model(
66
boxHeigth = 0.1,
77
world = Object3D(feature=Scene(enableContactDetection = true, # default value
8-
animationFile="BouncingSphere.json")),
8+
animationFile="BouncingSphere.json")),
99
ground = Object3D(parent=:world, translation=:[0.0,-boxHeigth/2,0.0],
1010
feature=Solid(shape=Box(lengthX=4.0, lengthY=:boxHeigth, lengthZ=0.7),
1111
visualMaterial=VisualMaterial(color="DarkGreen"),

test/Tutorial/Pendulum1.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ Pendulum = Model(
99
rev = Revolute(obj1=:world, obj2=:bodyFrame)
1010
)
1111

12-
pendulum = @instantiateModel(buildModia3D(Pendulum))
12+
pendulum = @instantiateModel(buildModia3D(Pendulum), unitless=true)
1313
simulate!(pendulum, stopTime=3.0)
1414

15-
@usingModiaPlot
15+
@usingModiaPlot # use the plot package defined by ENV["MODIA_PLOT"]
1616
plot(pendulum, "rev.phi")
1717
end

0 commit comments

Comments
 (0)