All Classes Namespaces Functions Variables Enumerations Properties Pages
Public Member Functions | Public Attributes | Properties | List of all members
PuppetMasterProp Class Reference

PuppetMaster prop designed to work with Prop Muscles. More...

Inherits MonoBehaviour.

Collaboration diagram for PuppetMasterProp:
Collaboration graph
[legend]

Public Member Functions

Rigidbody GetRigidbody ()
 Returns either the Rigidbody of the prop when it is dropped or the Rigidbody of the prop muscle when it is picked up. More...
 

Public Attributes

Transform meshRoot
 Mesh Root will be parented to Prop Muscle's target when this prop is picked up. To make sure the mesh and the colliders match up, Mesh Root's localPosition/Rotation must be zero. More...
 
Muscle.Props muscleProps
 The muscle properties that will be applied to the Prop Muscle when this prop is picked up. More...
 
bool forceLayers = true
 If true, this prop's layer will be forced to PuppetMaster layer and target's layer forced to PuppetMaster's Target Root's layer when the prop is picked up. More...
 
float mass = 1f
 Mass of the prop while picked up. When dropped, mass of the original Rigidbody will be used. More...
 
int propType
 This has no other purpose but helping you distinguish PropMuscle.currentProp by type. More...
 
PhysicMaterial pickedUpMaterial
 If assigned, sets prop colliders to this PhysicMaterial when picked up. If no materials assigned here, will maintain the original PhysicMaterial. More...
 
Vector3 additionalPinOffsetAdd
 Adds this to Prop Muscle's 'Additional Pin Offset' when this prop is picked up. More...
 
float additionalPinWeight = 1f
 The pin weight of the additional pin. Increasing this weight will make the prop follow animation better, but will increase jitter when colliding with objects. More...
 
float additionalPinMass = 1f
 Multiplies the mass of the additional pin by this value when this prop is picked up. The Rigidbody on this prop will be destroyed on pick-up and reattached on drop, so it's mass is not used while picked up. More...
 

Properties

bool isPickedUp [get, set]
 Is the prop currently picked up? More...
 

Detailed Description

PuppetMaster prop designed to work with Prop Muscles.