VelocityPickupSettings
A class in Root.Township, the global namespace.
Pickup type settings for items held with a velocity joint: how strongly the item follows the hand and the joint drive values.
- Listed in Global namespace: T to X
- Inherits or implements
PickupTypeSetting - Derived types
VelocityPickupSettings.Create - Nested types
Create
Constructors
| Member | What it is |
|---|---|
VelocityPickupSettings() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
17 private and internal fields
| Member | What it is |
|---|---|
private float environmentPositionDriveForce | Position spring used when the joint is an environmental joint (no damping). |
private float environmentRotationDriveForce | Rotation spring used when the joint is an environmental joint (no damping). |
private bool isLimitingJointPosition | If true, VelocityJoint limits how far the held item can be from the shoulder. |
private bool isUsingDistanceCalculation | Serialized option. Not read anywhere in this build. |
private float positionDamper | Damper of the position drive for swingable pickups. |
private float positionMaximumForce | Maximum force of the position drive for swingable pickups. |
private AnimationCurve positionScaler | Curve passed to the velocity joint to scale position following. |
private float positionSpring | Spring of the position drive for swingable pickups. |
private float rotationDamper | Damper of the rotation drive for swingable pickups. |
private float rotationMaximumForce | Maximum force of the rotation drive for swingable pickups. |
private AnimationCurve rotationScaler | Curve passed to the velocity joint to scale rotation following. |
private float rotationSpring | Spring of the rotation drive for swingable pickups. |
private AnimationCurve rotationSpringOverDistance | Rotation spring by distance, used by the distance overload of ApplyRotationDrive (which also logs every call). |
private float velocityJointPositionMultiplier | Client: position multiplier for the held item's velocity joint. The server always uses 9. |
private float velocityJointRotationMultiplier | Client: rotation multiplier for the held item's velocity joint. The server always uses 75. |
private float zAngleRotationLimit | Angular Z limit, in degrees, for swingable pickups. |
private float zBounciness | Bounciness of the angular Z limit for swingable pickups. |
Properties
Methods
Used in
Members of other types that take, return or hold a VelocityPickupSettings: