Class RigCreator
- Namespace
- DefaultNamespace
- Assembly
- Assembly-CSharp.dll
public class RigCreator : MonoBehaviour
- Inheritance
-
RigCreator
- Inherited Members
-
- Extension Methods
-
Constructors
RigCreator()
Fields
bodyparts
public List<RigCreatorBodypart> bodyparts
Field Value
- List<RigCreatorBodypart>
boxColldier
public GameObject boxColldier
Field Value
- GameObject
capsuleCol
public GameObject capsuleCol
Field Value
- GameObject
createRigEvent
public UnityEvent createRigEvent
Field Value
- UnityEvent
massMultiplier
public float massMultiplier
Field Value
- float
setDefaultLayer
public int setDefaultLayer
Field Value
- int
slipperyMat
public PhysicMaterial slipperyMat
Field Value
- PhysicMaterial
smartFillLegs
Field Value
- int
source
Field Value
- GameObject
sphereCol
public GameObject sphereCol
Field Value
- GameObject
targetRotationDragFactor
public float targetRotationDragFactor
Field Value
- float
targetRotationSpring
public float targetRotationSpring
Field Value
- float
useGravity
Field Value
- bool
useTargetRotation
public bool useTargetRotation
Field Value
- bool
Methods
AddColliders(RigCreatorBodypart)
public void AddColliders(RigCreatorBodypart bodypart)
Parameters
bodypart
RigCreatorBodypart
AddCollision()
public void AddCollision()
AddJoints()
AddRigs()
AddScripts()
ClearColliderData()
public void ClearColliderData()
ClearMesh(GameObject)
public void ClearMesh(GameObject spawned)
Parameters
spawned
GameObject
ConfigRotations()
public void ConfigRotations()
CopyDataTo(RigCreatorBodypart, RigCreatorBodypart)
public void CopyDataTo(RigCreatorBodypart from, RigCreatorBodypart to)
Parameters
from
RigCreatorBodypart
to
RigCreatorBodypart
CreateRig()
GetBodypart(BodypartType)
public RigCreatorBodypart GetBodypart(BodypartType targetBodypart)
Parameters
targetBodypart
BodypartType
Returns
- RigCreatorBodypart
GetBodypartTransform(BodypartType)
public Transform GetBodypartTransform(BodypartType target)
Parameters
target
BodypartType
Returns
- Transform
GetOrAddBodypart(BodypartType)
public RigCreatorBodypart GetOrAddBodypart(BodypartType bodypartType)
Parameters
bodypartType
BodypartType
Returns
- RigCreatorBodypart
MigrateColliders()
public void MigrateColliders()
OnDrawGizmosSelected()
public void OnDrawGizmosSelected()
RegisterParts()
public void RegisterParts()
ResetColliders()
public void ResetColliders()
SaveBodypartCollider(string, Transform)
public void SaveBodypartCollider(string colliderObjectName, Transform colTrans)
Parameters
colliderObjectName
string
colTrans
Transform
SaveJoint(RigCreatorBodypart, ConfigurableJoint)
public void SaveJoint(RigCreatorBodypart targetPart, ConfigurableJoint configurableJoint)
Parameters
targetPart
RigCreatorBodypart
configurableJoint
ConfigurableJoint
SmartFillLegs()
public void SmartFillLegs()
Start()