Skip to content

Commit 205c200

Browse files
committed
little changes
1 parent cd92162 commit 205c200

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Shapes/setCollisionSmoothingRadius.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ setContactSphereRadius(shape::Sphere{F}, contactSphereRadius::Nothing, ::Type{F}
3838
setContactSphereRadius(shape::Sphere{F}, contactSphereRadius::F, ::Type{F}) where F <: Modia3D.VarFloatType = (false, contactSphereRadius)
3939

4040

41-
setContactSphereRadius(shape::Ellipsoid{F}, contactSphereRadius::Nothing, ::Type{F}) where F <: Modia3D.VarFloatType = (false, min(shape.lengthX, shape.lengthY, shape.lengthZ)*F(0.5) )
41+
setContactSphereRadius(shape::Ellipsoid{F}, contactSphereRadius::Nothing, ::Type{F}) where F <: Modia3D.VarFloatType = (false, F(min(shape.lengthX, shape.lengthY, shape.lengthZ)*0.5) )
4242
setContactSphereRadius(shape::Ellipsoid{F}, contactSphereRadius::F, ::Type{F}) where F <: Modia3D.VarFloatType = (false, contactSphereRadius )
4343

4444

45-
setContactSphereRadius(shape::Cylinder{F}, contactSphereRadius::Nothing, ::Type{F}) where F <: Modia3D.VarFloatType = (false, min(shape.diameter, shape.length)*F(0.5) )
45+
setContactSphereRadius(shape::Cylinder{F}, contactSphereRadius::Nothing, ::Type{F}) where F <: Modia3D.VarFloatType = (false, F(min(shape.diameter, shape.length)*0.5) )
4646
setContactSphereRadius(shape::Cylinder{F}, contactSphereRadius::F, ::Type{F}) where F <: Modia3D.VarFloatType = (false, contactSphereRadius )
4747

4848

@@ -62,5 +62,5 @@ setContactSphereRadius(shape::Beam{F}, contactSphereRadius::Nothing, ::Type{F})
6262
setContactSphereRadius(shape::Beam{F}, contactSphereRadius::F, ::Type{F}) where F <: Modia3D.VarFloatType = (true, contactSphereRadius )
6363

6464

65-
setContactSphereRadius(shape::FileMesh, contactSphereRadius::Nothing, ::Type{F}) where F <: Modia3D.VarFloatType = (false, shape.shortestEdge * 0.5 )
65+
setContactSphereRadius(shape::FileMesh, contactSphereRadius::Nothing, ::Type{F}) where F <: Modia3D.VarFloatType = (false, F(shape.shortestEdge * 0.5) )
6666
setContactSphereRadius(shape::FileMesh, contactSphereRadius::F, ::Type{F}) where F <: Modia3D.VarFloatType = (false, contactSphereRadius )

0 commit comments

Comments
 (0)