Click or drag to resize
MyEntity Methods

[This is preliminary documentation and is subject to change.]

The MyEntity type exposes the following members.

Methods
  NameDescription
Public methodAddDebugRenderComponent
Public methodAddToGamePruningStructure
Public methodAfterPaste
Public methodBeforePaste
Public methodBeforeSave
Called before method GetObjectBuilder, when saving sector
Public methodClearDebugRenderComponents
Public methodClose
This method marks this entity for close which means, that Close will be called after all entities are updated
Public methodCreateSync
Public methodDebugDraw
Public methodDebugDrawInvalidTriangles
Public methodDebugDrawPhysics
Draw physical representation of entity
Public methodDelete
Every object must have this method, but not every phys object must necessarily have something to cleanup
Remarks
Public methodDoOverlapSphereTest
Public methodGetBaseEntity
Public methodGetDistanceBetweenCameraAndBoundingSphere
Public methodGetDistanceBetweenCameraAndPosition
Public methodGetDistanceBetweenPlayerPositionAndBoundingSphere
Public methodGetFriendlyName
Public methodGetHudParams
Public methodGetIntersectionWithLine(LineD, NullableMyIntersectionResultLineTriangleEx, IntersectionFlags)
Public methodGetIntersectionWithLine(LineD, NullableVector3D, Boolean, IntersectionFlags)
Public methodGetIntersectionWithLineAndBoundingSphere
Public methodGetIntersectionWithSphere
Public methodGetInventoryBase
Simply get the MyInventoryBase component stored in this entity.
Public methodGetInventoryBase(Int32)
Search for inventory component with maching index.
Public methodGetLargestDistanceBetweenCameraAndBoundingSphere
Public methodGetObjectBuilder
Gets object builder from object.
Public methodGetSmallestDistanceBetweenCameraAndBoundingSphere
Public methodGetSubpart
Public methodGetTopMostParent
Return top most parent of this entity
Public methodGetTrianglesIntersectingSphere
Public methodGetViewMatrix
Public methodInit(MyObjectBuilder_EntityBase)
Public methodInit(StringBuilder, String, MyEntity, NullableSingle, String)
Public methodOnAddedToScene
Called when [activated] which for entity means that was added to scene.
Public methodOnRemovedFromScene
Public methodPrepareForDraw
Method is called defacto from Update, preparation fo Draw
Public methodRaisePhysicsChanged
Public methodRefreshModels
Public methodRemoveFromGamePruningStructure
Public methodSetEmissiveParts
Public methodSetEmissivePartsForSubparts
Public methodSetSpeedsAccordingToServerValues
Public methodToString (Overrides ObjectToString.)
Public methodTryGetSubpart
Public methodUpdateAfterSimulation
Public methodUpdateAfterSimulation10
Public methodUpdateAfterSimulation100
Public methodUpdateBeforeSimulation
Public methodUpdateBeforeSimulation10
Called each 10th frame if registered for update10
Public methodUpdateBeforeSimulation100
Called each 100th frame if registered for update100
Public methodUpdateGamePruningStructure
Public methodUpdateOnceBeforeFrame
Public methodUpdatingStopped
Top
Extension Methods
Explicit Interface Implementations
  NameDescription
Explicit interface implementationPrivate methodIMyEntityClose
Explicit interface implementationPrivate methodIMyEntityDelete
Explicit interface implementationPrivate methodIMyEntityDoOverlapSphereTest
Explicit interface implementationPrivate methodIMyEntityEnableColorMaskForSubparts
Explicit interface implementationPrivate methodIMyEntityGetChildren
Explicit interface implementationPrivate methodIMyEntityGetDiffuseColor
Explicit interface implementationPrivate methodIMyEntityGetDistanceBetweenCameraAndBoundingSphere
Explicit interface implementationPrivate methodIMyEntityGetDistanceBetweenCameraAndPosition
Explicit interface implementationPrivate methodIMyEntityGetFriendlyName
Explicit interface implementationPrivate methodIMyEntityGetIntersectionWithLineAndBoundingSphere
Explicit interface implementationPrivate methodIMyEntityGetIntersectionWithSphere
Explicit interface implementationPrivate methodIMyEntityGetLargestDistanceBetweenCameraAndBoundingSphere
Explicit interface implementationPrivate methodIMyEntityGetObjectBuilder
Explicit interface implementationPrivate methodIMyEntityGetPosition
Explicit interface implementationPrivate methodIMyEntityGetSmallestDistanceBetweenCameraAndBoundingSphere
Explicit interface implementationPrivate methodIMyEntityGetTopMostParent
Explicit interface implementationPrivate methodIMyEntityGetTrianglesIntersectingSphere
Explicit interface implementationPrivate methodIMyEntityGetViewMatrix
Explicit interface implementationPrivate methodIMyEntityGetWorldMatrixNormalizedInv
Explicit interface implementationPrivate methodIMyEntityIsVisible
Explicit interface implementationPrivate methodIMyEntitySetColorMaskForSubparts
Explicit interface implementationPrivate methodIMyEntitySetEmissiveParts
Sets the emissive value of a specific emissive material on entity.
Explicit interface implementationPrivate methodIMyEntitySetEmissivePartsForSubparts
Sets the emissive value of a specific emissive material on all entity subparts.
Explicit interface implementationPrivate methodIMyEntitySetLocalMatrix
Explicit interface implementationPrivate methodIMyEntitySetPosition
Explicit interface implementationPrivate methodIMyEntitySetWorldMatrix
Top
See Also