Click or drag to resize

RigidBody2D Methods

The RigidBody2D type exposes the following members.

Methods
 NameDescription
Public methodAddComponent Adds a component as a child.
(Inherited from Component)
Public methodApplyAngularImpulse Apply an angular impulse.
Public methodApplyForce(Vector2) Applies a force at the center of mass.
Public methodApplyForce(Vector2, Vector2) Apply a force at a world point. If the force is not applied at the center of mass, it will generate a torque and affect the angular velocity. This wakes up the body.
Public methodApplyLinearImpulse(Vector2) Apply an impulse at a point. This immediately modifies the velocity. This wakes up the body.
Public methodApplyLinearImpulse(Vector2, Vector2) Apply an impulse at a point. This immediately modifies the velocity. It also modifies the angular velocity if the point of application is not at the center of mass. This wakes up the body.
Public methodApplyTorque Apply a torque. This affects the angular velocity without affecting the linear velocity of the center of mass. This wakes up the body.
Public methodBeginNetworkMessage(ServerNetworkService_ComponentsClientItem, String)
(Inherited from Component)
Public methodBeginNetworkMessage(IListServerNetworkService_ComponentsClientItem, String)
(Inherited from Component)
Public methodBeginNetworkMessage(IListServerNetworkService_UsersUserInfo, String)
(Inherited from Component)
Public methodBeginNetworkMessage(ServerNetworkService_UsersUserInfo, String)
(Inherited from Component)
Public methodBeginNetworkMessageToEveryone
(Inherited from Component)
Public methodBeginNetworkMessageToServer
(Inherited from Component)
Public methodCheckSelectionByRay
(Inherited from ObjectInSpace)
Public methodClone Creates a copy of the object.
(Inherited from Component)
Public methodCreateComponent(Type, Int32, Boolean, Boolean, NetworkModeEnum) Creates a child component.
(Inherited from Component)
Public methodCreateComponent(MetadataTypeInfo, Int32, Boolean, Boolean, NetworkModeEnum) Creates a child component.
(Inherited from Component)
Public methodCreateComponentT(Int32, Boolean, Boolean, NetworkModeEnum) Creates a child component.
(Inherited from Component)
Public methodDispose Detaches the object from the hierarchy and deletes the object data.
(Inherited from Component)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodFindParent(Type) Finds the parent of the specified type.
(Inherited from Component)
Public methodFindParent(MetadataTypeInfo) Finds the parent of the specified type.
(Inherited from Component)
Public methodFindParentT Finds the parent of the specified type.
(Inherited from Component)
Public methodFindThisOrParent(Type) Finds the parent or self of the specified type.
(Inherited from Component)
Public methodFindThisOrParent(MetadataTypeInfo) Finds the parent or self of the specified type.
(Inherited from Component)
Public methodFindThisOrParentT Finds the parent or self of the specified type.
(Inherited from Component)
Public methodGetAllParents Gets all parents of the component.
(Inherited from Component)
Public methodGetComponent(String, Boolean) Finds a child component by name.
(Inherited from Component)
Public methodGetComponent(Type, Boolean, Boolean) Finds a child component of the specified type.
(Inherited from Component)
Public methodGetComponent(MetadataTypeInfo, Boolean, Boolean) Finds a child component of the specified type.
(Inherited from Component)
Public methodGetComponentT(Boolean, Boolean) Finds a child component of the specified type.
(Inherited from Component)
Public methodGetComponentByNameWithIndex Finds a child component by name and number in the case when there are several components with the specified name.
(Inherited from Component)
Public methodGetComponentByPath Finds a child component by path.
(Inherited from Component)
Public methodGetComponents(Boolean, Boolean, Boolean, Boolean) Finds child components.
(Inherited from Component)
Public methodGetComponents(Boolean, Boolean, Boolean, Boolean, ActionComponent) Finds child components.
(Inherited from Component)
Public methodGetComponents(Type, Boolean, Boolean, Boolean, Boolean) Finds child components of the specified type.
(Inherited from Component)
Public methodGetComponents(MetadataTypeInfo, Boolean, Boolean, Boolean, Boolean) Finds child components of the specified type.
(Inherited from Component)
Public methodGetComponentsT(Boolean, Boolean, Boolean, Boolean, ActionT) Finds child components of the specified type.
(Inherited from Component)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetPathFromParent Returns the path to the object from the parent.
(Inherited from Component)
Public methodGetPathFromRoot Returns the object's access path from the root object.
(Inherited from Component)
Public methodGetProvidedType Returns a type when the object is used as a type.
(Inherited from Component)
Public methodGetScreenLabelInfo
(Inherited from Component)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodIsMethodInvoking Checks if a method is running over time. You can start executing such methods using MethodInvoke(String, Object, Double, Double) method.
(Inherited from Component)
Public methodLookAt(ObjectInSpace)
(Inherited from ObjectInSpace)
Public methodLookAt(Vector3)
(Inherited from ObjectInSpace)
Public methodLookAt(ObjectInSpace, Vector3)
(Inherited from ObjectInSpace)
Public methodLookAt(Vector3, Vector3)
(Inherited from ObjectInSpace)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodMetadataGetMemberBySignature Returns the object metadata member by name.
(Inherited from Component)
Public methodMetadataGetMembers Returns the object metadata members.
(Inherited from Component)
Public methodMethodInvoke Calls a method by name.
(Inherited from Component)
Public methodMethodInvokeCancel Cancels the execution of selected method that run over time. You can start executing such methods using MethodInvoke(String, Object, Double, Double) method.
(Inherited from Component)
Public methodMethodInvokeCancelAll Cancels the execution of all methods that run over time. You can start executing such methods using MethodInvoke(String, Object, Double, Double) method.
(Inherited from Component)
Public methodNetworkDisablePropertySynchronization
(Inherited from Component)
Public methodNetworkIsDisabledPropertySynchronization
(Inherited from Component)
Public methodNetworkModeAddUser
(Inherited from Component)
Public methodNetworkModeIsEnabledForUser
(Inherited from Component)
Public methodNetworkModeRemoveUser
(Inherited from Component)
Public methodNetworkRestoreDisabledPropertySynchronization
(Inherited from Component)
Public methodNewObjectSetDefaultConfiguration Called when the object is created in the editor. Designed to configure the initial state.
(Inherited from Component)
Public methodNewObjectSetDefaultConfigurationUpdate Called during object creation in the editor. Designed to configure the initial state.
(Inherited from Component)
Protected methodOnAddedToParent
(Inherited from ObjectInSpace)
Protected methodOnCheckSelectionByRay
(Overrides ObjectInSpaceOnCheckSelectionByRay(ObjectInSpaceCheckSelectionByRayContext))
Protected methodOnClientConnectedAfterRootComponentEnabled
(Inherited from Component)
Protected methodOnClientConnectedBeforeRootComponentEnabled
(Inherited from Component)
Protected methodOnClientDisconnected
(Inherited from Component)
Protected methodOnClone Called when the object is cloned.
(Inherited from Component)
Protected methodOnComponentAdded Called when a child component is added.
(Inherited from Component)
Protected methodOnComponentRemoved Called when a child component is removed.
(Inherited from Component)
Protected methodOnDisabled Called when the object is detached from a hierarchy of the components or is disabled. See also EnabledInHierarchy property.
(Inherited from Component)
Protected methodOnDisabledInSimulation Called when the object is detached from a hierarchy of the components or is disabled. The method is called only in simulation application. See also EnabledInHierarchy property.
(Inherited from Component)
Protected methodOnDispose Called when the object is disposed.
(Inherited from Component)
Protected methodOnEditorGetTextInfoCenterBottomCorner
(Inherited from Component)
Protected methodOnEnabled Called when the object is attached to a hierarchy of the components and is enabled. See also EnabledInHierarchy property.
(Inherited from Component)
Protected methodOnEnabledChanged Called when value of Enabled property is changed.
(Inherited from Component)
Protected methodOnEnabledInHierarchyChanged
(Overrides ObjectInSpaceOnEnabledInHierarchyChanged)
Protected methodOnEnabledInSimulation Called when the object is attached to a hierarchy of the components and is enabled. The method is called only in simulation application. See also EnabledInHierarchy property.
(Inherited from Component)
Protected methodOnEnabledSelectionByCursor
(Overrides ObjectInSpaceOnEnabledSelectionByCursor)
Protected methodOnGetRenderSceneData
(Overrides ObjectInSpaceOnGetRenderSceneData(ViewportRenderingContext, GetRenderSceneDataMode, SceneGetObjectsInSpaceItem))
Protected methodOnGetSceneObjectFlags
(Inherited from ObjectInSpace)
Protected methodOnLifetimeEnd
(Inherited from ObjectInSpace)
Protected methodOnLoad Called during object loading.
(Inherited from Component)
Protected methodOnMetadataGetMemberBySignature Called when the object metadata member is received by name.
(Inherited from Component)
Protected methodOnMetadataGetMembers Called upon receipt of the object's metadata members.
(Inherited from Component)
Protected methodOnMetadataGetMembersFilter
(Overrides ComponentOnMetadataGetMembersFilter(MetadataGetMembersContext, MetadataMember, Boolean))
Protected methodOnOcclusionCullingDataGet
(Inherited from ObjectInSpace)
Protected methodOnPreloadResources Called when preloading the resources used by the object.
(Inherited from Component)
Protected methodOnReceiveNetworkMessageFromClient
(Inherited from Component)
Protected methodOnReceiveNetworkMessageFromServer
(Inherited from Component)
Protected methodOnRemovedFromParent
(Inherited from ObjectInSpace)
Protected methodOnSave Called during object saving.
(Inherited from Component)
Protected methodOnSimulationStep
(Inherited from ObjectInSpace)
Protected methodOnSimulationStepClient
(Inherited from ObjectInSpace)
Protected methodOnSpaceBoundsUpdate
(Overrides ObjectInSpaceOnSpaceBoundsUpdate(SpaceBounds))
Protected methodOnSpaceBoundsUpdateIncludeChildren
(Inherited from ObjectInSpace)
Protected methodOnTransformChanged
(Overrides ObjectInSpaceOnTransformChanged)
Protected methodOnTransformUpdating
(Inherited from ObjectInSpace)
Protected methodOnUpdate Called during the update process of all objects.
(Inherited from Component)
Public methodPreloadResources Preload resources used by the object.
(Inherited from Component)
Public methodPropertyGet(String, Object, Boolean) Gets the value of a property by name.
(Inherited from Component)
Public methodPropertySet Sets the value of a property by name.
(Inherited from Component)
Public methodRecreateBody 
Public methodRemoveAllComponents Removes all child components.
(Inherited from Component)
Public methodRemoveComponent Removes a child component.
(Inherited from Component)
Public methodRemoveFromParent Detaches the object from its parent.
(Inherited from Component)
Public methodRenderPhysicalObject
(Overrides PhysicalBody2DRenderPhysicalObject(ViewportRenderingContext, Int32))
Public methodSetPosition(Vector3)
(Inherited from ObjectInSpace)
Public methodSetPosition(Double, Double, Double)
(Inherited from ObjectInSpace)
Public methodSetRotation(Angles)
(Inherited from ObjectInSpace)
Public methodSetRotation(Quaternion)
(Inherited from ObjectInSpace)
Public methodSetRotation(Double, Double, Double)
(Inherited from ObjectInSpace)
Public methodSetScale(Double)
(Inherited from ObjectInSpace)
Public methodSetScale(Vector3)
(Inherited from ObjectInSpace)
Public methodSetScale(Double, Double, Double)
(Inherited from ObjectInSpace)
Public methodSpaceBoundsUpdate
(Inherited from ObjectInSpace)
Public methodToString Returns the name and type of the object as a string.
(Inherited from Component)
Public methodTypeSettingsIsPublic Checks whether the object provided as a type is public.
(Inherited from Component)
Public methodTypeSettingsIsPublicMember Checks whether the member is set up as public.
(Inherited from Component)
Public methodUpdateDataFromPhysicsEngine
(Overrides PhysicalBody2DUpdateDataFromPhysicsEngine)
Top
Extension Methods
 NameDescription
Public Extension MethodMethodInvoke Calls the object method by name.
(Defined by ObjectEx)
Public Extension MethodPropertyGet Gets the value of the object property by name.
(Defined by ObjectEx)
Public Extension MethodPropertyGetT Gets the value of the object property by name.
(Defined by ObjectEx)
Public Extension MethodPropertySet Sets the value of the object property by name.
(Defined by ObjectEx)
Top
See Also