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

Automated prop picking up/dropping for the PuppetMaster. More...

Inherits MonoBehaviour.

Inherited by PropTemplate.

Collaboration diagram for Prop:
Collaboration graph
[legend]

Public Attributes

int propType
 This has no other purpose but helping you distinguish PropRoot.currentProp by type. More...
 
ConfigurableJoint muscle
 The Muscle of this prop. More...
 
Muscle.Props muscleProps = new Muscle.Props()
 The muscle properties that will be applied to the Muscle. 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...
 
ConfigurableJoint additionalPin
 Optinal additional pin, useful for long melee weapons that would otherwise require a lot of muscle force and solver iterations to be swinged quickly. Should normally be without any colliders attached. The position of the pin, its mass and the pin weight will effect how the prop will handle. More...
 
Transform additionalPinTarget
 Target Transform for the additional pin. 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...
 
PhysicMaterial pickedUpMaterial
 If assigned, sets prop colliders to this PhysicMaterial when picked up. More...
 
PhysicMaterial droppedMaterial
 If assigned, sets prop colliders to this PhysicMaterial when dropped. More...
 

Properties

bool isPickedUp [get]
 Is this prop picked up and connected to a PropRoot? More...
 
PropRoot propRoot [get, set]
 Returns the PropRoot that this prop is connected to if it is picked up. If this returns null, the prop is not picked up. More...
 

Detailed Description

Automated prop picking up/dropping for the PuppetMaster.