GFX
  • Docs
  • API
Search Results for

    Show / Hide Table of Contents
    • Genesis.Core
      • AssetManager
      • DirectionalLight
      • Game
      • GameElement
      • GameEventHandler
      • IGameBehavior
      • Input
      • Input.Keys
      • Layer
      • Light
      • Light2D
      • PointLight
      • Scene
      • Scene2D
      • Scene3D
      • SceneEventHandler
      • SceneSizeEvenHandler
      • Storage
      • Utils
      • Window
      • Window.WindowEventHandler
      • WindowUtilities
      • WindowUtilities.POINT
      • WindowUtilities.RECT
    • Genesis.Core.Behaviors
      • AnimationBehavior
      • CameraFlags
      • CharacterController2D
      • ControllerPreset
      • MoveDirection
      • MovementFlags
      • SpriteMovementController
    • Genesis.Core.Behaviors.Physics2D
      • BoxCollider
      • BoxRigidBody
      • BoxTrigger2D
      • BufferedSpriteCollider
      • PhysicsBox2D
      • PhysicsPolygon2D
      • Rigidbody2D
    • Genesis.Core.Behaviors.Physics3D
      • BoxCollider
      • BoxRigidBody
      • BoxTrigger
      • CapsuleCollider
      • CapsuleRigidBody
      • CompoundMeshCollider
      • ConvexHullBehavior
      • ConvexHullCollider
      • MeshCollider
      • QubeConvexHull
      • SphereCollider
      • SphereRigidBody
      • SphereTrigger
      • StaticMeshBehavior
    • Genesis.Core.Behaviors._3D
      • Stance
      • ThirdpersonCharacterController
    • Genesis.Core.GameElements
      • BufferedSprite
      • CameraElement
      • Element3D
      • Empty
      • FindPathAsynchResult
      • GridCell
      • Model
      • NavMesh
      • Obstacle
      • ParticleBuffers
      • ParticleDeffinition
      • ParticleEmitter
      • Qube
      • RectElement
      • Skybox
      • Sphere
      • Sprite
      • SpriteShapeDeffinition
      • Terrain2D
      • Terrain3D
      • TerrainData
      • Waypoint
    • Genesis.Graphics
      • Animation
      • AnimationCallback
      • AnimationCallback.AnimationEvent
      • Camera
      • CameraType
      • Face
      • Font
      • Framebuffer
      • Frustum
      • Glyphe
      • IRenderDevice
      • InstancedElement
      • InstancedMesh
      • Material
      • MaterialBuffer
      • Mesh
      • PerspectiveCamera
      • RenderInstanceContainer
      • RenderSettings
      • Shader
      • ShaderProgram
      • SpriteSheet
      • TexCoords
      • Texture
      • Viewport
    • Genesis.Graphics.Animation3D
      • Animation
      • Animator
      • AssimpNodeData
      • Bone
      • KeyPosition
      • KeyRotation
      • KeyScale
      • ModelMesh
      • boneinfo
      • vertex
    • Genesis.Graphics.Physics
      • BulletDebugRenderer
    • Genesis.Graphics.RenderDevice
      • GLRenderer
      • LegacyRenerer
    • Genesis.Graphics.Shaders.OpenGL
      • AnimatedModelShader
      • BasicShader
      • BorderCircleShader
      • DiffuseLightning
      • DiffuseNormalLightning
      • DiffuseNormalShader
      • DiffuseShader
      • DiffuseSolidShader
      • Element3DShader
      • FXScreenSpaceShadowShader
      • InstanceShader2D
      • InstancedShader
      • Light2DShader
      • LightmapShader
      • MVPRectShader
      • MVPShader
      • MVPSolidShader
      • ParticleShader
      • ScreenShader
      • SkyboxShader
      • SolidShapeShader
      • SpecularShader
      • SpriteShader
      • TerrainShader
      • WireframeShader
    • Genesis.Graphics.Shapes
      • BufferedSpriteShape
      • CircleShape
      • FrameShape
      • GlypheShape
      • Light2DShape
      • LineShape
      • PlaneShape
      • QubeShape
      • RectShape
      • Shape
      • SphereShape
      • SpriteShape
    • Genesis.Math
      • Matrix4x4
      • NoisePoint
      • PerlinNoise
      • Rect
      • Vec3
    • Genesis.Physics
      • Aabb
      • ColliderBehavior2D
      • ColliderBehavior3D
      • CollisionGroup
      • CollisionGroupExtensions
      • HitResult
      • HitResult2D
      • MatrixSet
      • MouseRay2
      • PhysicHandler
      • PhysicHandlerEvent
      • PhysicPropeterys
      • PhysicsBehavior
      • PhysicsBehaviorEvent
      • PhysicsHandler2D
      • PhysicsHandler3D
      • Ray2D
      • Raycast
      • Raycast2D
      • RigidBodyBehavior2D
      • RigidBodyBehavior3D
      • TriggerBehavior2D
      • TriggerBehavior3D
    • Genesis.UI
      • Button
      • Canvas
      • GridView
      • ImageButton
      • Label
      • ListItem
      • ListItemBehavior
      • ListSelector
      • ListSelectorBehavior
      • Panel
      • ProgressBar
      • UIEvent
      • UIParseHandler
      • UIParser
      • Widget
      • WidgetAnchor
    • Genesis.UI.Items
      • GridViewImageIcon
      • IItem

    Class PhysicsHandler3D

    Represents a 3D physics handler responsible for managing physics simulation in a game.

    Inheritance
    object
    PhysicHandler
    PhysicsHandler3D
    Inherited Members
    PhysicHandler.OnBeforePhysicsUpdate(Scene, Game)
    PhysicHandler.Callbacks
    PhysicHandler.BeforePhysicsUpdate
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Genesis.Physics
    Assembly: Genesis.dll
    Syntax
    public class PhysicsHandler3D : PhysicHandler

    Constructors

    PhysicsHandler3D(PhysicPropeterys)

    Initializes a new instance of the PhysicsHandler3D class with specified PhysicPropeterys.

    Declaration
    public PhysicsHandler3D(PhysicPropeterys propeterys)
    Parameters
    Type Name Description
    PhysicPropeterys propeterys

    The physics properties containing gravity values.

    PhysicsHandler3D(float, float, float)

    Initializes a new instance of the PhysicsHandler3D class with specified gravity values.

    Declaration
    public PhysicsHandler3D(float gravityX, float gravityY, float gravityZ)
    Parameters
    Type Name Description
    float gravityX

    The X component of gravity.

    float gravityY

    The Y component of gravity.

    float gravityZ

    The Z component of gravity.

    Properties

    PhysicsWorld

    Gets or sets the 3D physics world used for simulation.

    Declaration
    public DiscreteDynamicsWorld PhysicsWorld { get; set; }
    Property Value
    Type Description
    DiscreteDynamicsWorld

    ProcessPhysics

    Gets or sets a flag indicating whether physics simulation should be processed.

    Declaration
    public bool ProcessPhysics { get; set; }
    Property Value
    Type Description
    bool

    Methods

    ManageElement(PhysicsBehavior, int, int)

    Manages a physics behavior element by adding its collision object to the physics world.

    Declaration
    public override void ManageElement(PhysicsBehavior collisionObjec, int collisionGroup = -1, int collisionMask = -1)
    Parameters
    Type Name Description
    PhysicsBehavior collisionObjec

    The PhysicsBehavior representing the rigid body element.

    int collisionGroup
    int collisionMask
    Overrides
    PhysicHandler.ManageElement(PhysicsBehavior, int, int)

    Process(Scene, Game)

    Processes the physics simulation for the given scene and game.

    Declaration
    public override void Process(Scene scene, Game game)
    Parameters
    Type Name Description
    Scene scene

    The current game scene.

    Game game

    The current game instance.

    Overrides
    PhysicHandler.Process(Scene, Game)

    RemoveElement(PhysicsBehavior)

    Removes the specified physics behavior from the physics world.

    Declaration
    public override void RemoveElement(PhysicsBehavior physicsBehavior)
    Parameters
    Type Name Description
    PhysicsBehavior physicsBehavior

    The physics behavior to be removed.

    Overrides
    PhysicHandler.RemoveElement(PhysicsBehavior)
    Remarks

    This method removes the collision object associated with the provided physics behavior from the physics world.

    In this article
    Back to top Generated by DocFX