The rigidbody to which the other end of the joint is attached. _deserialize Init this object from the custom serialized data.Ĭocos2d/core/physics/joint/CCRopeJoint.js:56._serialize The customized serialization for this object._onPreDestroy Called before the object being destroyed._destruct Clear all references in the instance.destroy Actual object destruction will delayed until before rendering.unscheduleAllCallbacks unschedule all scheduled callback functions: custom callback functions, and the 'update' callback function.unschedule Unschedules a custom callback function.scheduleOnce Schedules a callback function that runs only once, with a delay of 0 or larger._getLocalBounds If the component's bounding box is different from the node's, you can implement this method to supply.getComponentsInChildren Returns the components of supplied type in self or any of its children using depth first search. ![]() getComponentInChildren Returns the component of supplied type in any of its children using depth first search.getComponents Returns all components of supplied Type in the node.getComponent Returns the component of supplied type if the node has one attached, null if it doesn't.addComponent Adds a component class to the node.resetInEditor Called to initialize the component or node’s properties when adding the component the first time or when the Reset command is used.start Called before all scripts' update if the Component is enabled the first time.onLoad When attaching to an active node or its node first activated._preload _preload is called before every onLoad.getReactionTorque Gets the reaction torque of the joint.getReactionForce Gets the reaction force of the joint.getWorldConnectedAnchor Get the anchor point on connected rigidbody in world coordinates.getWorldAnchor Get the anchor point on rigidbody in world coordinates.apply Apply current changes to joint, this will regenerate inner box2d joint.isValid Boolean Indicates whether the object is not yet destroyed._isOnLoadCalled Number Returns a value which used to indicate the onLoad get called or not.enabledInHierarchy Boolean indicates whether this component is enabled and its node is also active in the hierarchy.enabled Boolean indicates whether this component is enabled or not.node Node The node this component is attached to._eventTargets Array Register all related EventTargets.collideConnected Boolean Should the two rigid bodies connected with this joint collide with each other?.connectedBody RigidBody The rigidbody to which the other end of the joint is attached. ![]() connectedAnchor Vec2 The anchor of the connected rigidbody.anchor Vec2 The anchor of the rigidbody.The simulation you will get some non-physical behavior. ![]() Warning: if you attempt to change the maximum length during A rope joint enforces a maximum distance between two points
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |