1 using System.Collections;
2 using System.Collections.Generic;
24 [CreateAssetMenu(fileName =
"Data", menuName =
"arc-vr/phys/GrabbableObjectType", order = 1)]
27 public enum FollowType { FREE, STATIC, CONSTRAINED, HEAVY };
28 public FollowType followType;
30 public bool handToObject =
false;
32 public bool allowTwoHanded =
false;
37 public float Lightness = 1.0f;
39 public float Angular_Lightness = 1.0f;
42 public float Break_grab_distance = 0.5f;
45 public float Heavy_force_multiplier = 1.0f;
51 o.followType = FollowType.FREE;
52 o.handToObject =
false;
53 o.allowTwoHanded =
false;
54 o.changeObjectTypeOnTwoHanded =
false;
56 o.Angular_Lightness = 1.0f;
57 o.Break_grab_distance = 0.5f;
58 o.soundData.pickupSound = null;
59 o.soundData.releaseSound = null;
60 o.soundData.collideSound = null;
61 o.soundData.volumeMultiplier = 1.0f;
69 followType = FollowType.FREE;
71 allowTwoHanded =
false;
72 changeObjectTypeOnTwoHanded =
false;
74 Angular_Lightness = 1.0f;
75 Break_grab_distance = 0.5f;
76 soundData.pickupSound = null;
77 soundData.releaseSound = null;
78 soundData.collideSound = null;
79 soundData.volumeMultiplier = 1.0f;
static GrabbableObjectType defaultObjectType()
Defines how an object behaves whilst grabbed.
Defines a set of sounds and modifiers to be played during physics events for GrabbableObjectType's ...
GrabbableObjectType typeOnTwoHanded
GrabbableObjectSoundData soundData
bool changeObjectTypeOnTwoHanded