You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/docs/avatar/jiggle.mdx
+41-5Lines changed: 41 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,15 +3,51 @@ title: Jiggle Physics
3
3
description: Jiggle Physics allows you to add dynamic movement to parts of your avatar, such as hair, clothing, or accessories, enhancing realism and immersion.
- Add a new component `Jiggle Rig`, which can be placed in a separate gameObject, but it must under the hierarchy of your Avatar root.
10
-
- In the Jiggle Rig component, ensure to set a `Root Transform`, which is a bone in the avatar armature.
11
-
- If you have a parent bone (for multiple chains of child bones that you wish to apply the same effect to) you can enable `Motionless Root` to only affect the child bones and not the root itself. (Optional)
12
-
- Adjust `Settings` to your liking (activate `Advanced` to view all settings).
11
+
- Add a new `Jiggle Rig` component either to a new GameObject, or any existing one as long it's under the hierarchy of your Avatar root.
- Assign the bone in the avatar armature that you want to make jiggle to the `Root Transform` in the inspector. For example, this can include things like your avatar's hair, clothing, accessories or body parts. Keep in mind that for things with a left and right side (such as left and right breasts), you'll want to add a separate `Jiggle Rig` for each one (otherwise only one side will jiggle!).
16
+
17
+
<Callouttype="info">
18
+
Tip: To keep your Jiggle Rigs organised, you can nest them under a newly created parent GameObject for example.
19
+
</Callout>
20
+
21
+
- You can adjust the settings and test in playmode (e.g., either by just dragging the avatar around or using the `Basis Avatar` component's `Test in Editor` option) until you're satisfied. You can also place your mouse cursor over each setting option to see a description of what it does. To view all settings, you can click on `Advanced`.
Optionally, if you have a parent bone with multiple chains of child bones inside it and you wish to apply the same effect to them, you can enable `Motionless Root` so that it only affects the child bones and not the root itself.
27
+
</Callout>
28
+
29
+
- Below you can see an example with Jiggle Rigs applied to the hair, clothing and chest.
30
+
31
+

13
32
14
33
## Collision Interaction
15
34
35
+
If you want collisions by objects to drive the jiggles:
36
+
16
37
- Activate `Advanced` to view all settings.
38
+
17
39
- Enable `Collision` and adjust `Collision Radius` to fit the object.
40
+
41
+
- Add a GameObject which you want to use for triggering collisions. Assign to it the component `Jiggle Collider Example`.
42
+
43
+
<Callouttype="info">
44
+
Make sure whatever GameObject your using has a sphere collider!
45
+
</Callout>
46
+
47
+
- In the `Jiggle Collider Transform` field, assign your colliding GameObject and select Sphere as the `Collider Type`. Note that currently only sphere colliders are supported, but the creator of the jiggle system, Naelstrof, is likely to add more in the future.
48
+
49
+

50
+
51
+
- Below is an example of a sphere object with the component `BasisPickupInteractable` colliding with an avatar's hair.
0 commit comments