Skip to content

Commit

Permalink
updated distance and color
Browse files Browse the repository at this point in the history
Signed-off-by: ladianchad <[email protected]>
  • Loading branch information
ladianchad committed Jan 21, 2025
1 parent a58bb63 commit 423556e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
8 changes: 4 additions & 4 deletions document/src/components/pages/chapter2/HelicalJoint.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ const Skew = () => {

return <cylinder
name="skew"
height={10}
diameter={0.5}
height={15}
diameter={0.7}
tessellation={64}
>
<standardMaterial
name="skew_mat"
diffuseColor={new Color3(0.3, 0.3, 0.6)}
diffuseColor={new Color3(0.7, 0.3, 0.3)}
>
</standardMaterial>
</cylinder>
Expand Down Expand Up @@ -112,7 +112,7 @@ const HelicalJoint = () => {
<Physics3DCanvas
className="aspect-square w-full rounded-lg"
initialView={{
radius: 20,
radius: 25,
at: {
x: 0,
y: 5,
Expand Down
4 changes: 2 additions & 2 deletions document/src/components/pages/chapter2/PrismaticJoint.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const PrismaticLink = ({
value: initialPoint
}, {
frame: 60,
value: initialPoint.add(new Vector3(direction * 1.75, 0, 0))
value: initialPoint.add(new Vector3(direction * 2.75, 0, 0))
}, {
frame: 120,
value: initialPoint
Expand Down Expand Up @@ -66,7 +66,7 @@ const PrismaticJoint = () => {
<Physics3DCanvas
className="aspect-square w-full rounded-lg"
initialView={{
radius: 20,
radius: 25,
at: {
x: -3,
y: 1,
Expand Down
1 change: 1 addition & 0 deletions document/src/components/pages/chapter2/RevoluteJoint.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ const RevoluteJoint = () => {
<Physics3DCanvas
className="aspect-square w-full rounded-lg"
initialView={{
radius: 25,
at: {
x: 0,
y: 5,
Expand Down

0 comments on commit 423556e

Please sign in to comment.