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 ColliderBehavior3D

    Inheritance
    object
    IGameBehavior
    PhysicsBehavior
    ColliderBehavior3D
    BoxCollider
    CapsuleCollider
    CompoundMeshCollider
    ConvexHullCollider
    MeshCollider
    SphereCollider
    Inherited Members
    PhysicsBehavior.Collide(Scene, Game, GameElement)
    PhysicsBehavior.OnCollide
    IGameBehavior.Parent
    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 abstract class ColliderBehavior3D : PhysicsBehavior

    Constructors

    ColliderBehavior3D(PhysicHandler)

    Declaration
    protected ColliderBehavior3D(PhysicHandler physicHandler)
    Parameters
    Type Name Description
    PhysicHandler physicHandler

    Properties

    Collider

    Declaration
    public CollisionObject Collider { get; set; }
    Property Value
    Type Description
    CollisionObject

    Offset

    Declaration
    public Vec3 Offset { get; set; }
    Property Value
    Type Description
    Vec3

    PhysicHandler

    Declaration
    public PhysicHandler PhysicHandler { get; set; }
    Property Value
    Type Description
    PhysicHandler

    Methods

    CreateCollider(int, int)

    Abstract method to create the collider. Implement this method in derived classes to define the specific behavior for creating a collider.

    Declaration
    public abstract void CreateCollider(int collisionGroup = -1, int collisionMask = -1)
    Parameters
    Type Name Description
    int collisionGroup
    int collisionMask

    GetPhysicsObject()

    Retrieves the physics object associated with this behavior.

    Declaration
    public override object GetPhysicsObject()
    Returns
    Type Description
    object

    The rigid body associated with this behavior.

    Overrides
    PhysicsBehavior.GetPhysicsObject()

    GetPhysicsObject<T>()

    Retrieves the physics object associated with this behavior, cast to the specified type.

    Declaration
    public override T GetPhysicsObject<T>()
    Returns
    Type Description
    T

    The rigid body associated with this behavior, cast to the specified type.

    Type Parameters
    Name Description
    T

    The type to cast the physics object to.

    Overrides
    PhysicsBehavior.GetPhysicsObject<T>()

    OnDestroy(Game, GameElement)

    Rendering method called during the render phase. Override this method to provide custom rendering logic.

    Declaration
    public override void OnDestroy(Game game, GameElement parent)
    Parameters
    Type Name Description
    Game game

    The game instance.

    GameElement parent

    The parent game element.

    Overrides
    IGameBehavior.OnDestroy(Game, GameElement)

    OnInit(Game, GameElement)

    Initialization method called when the behavior is initialized. Override this method to provide custom initialization logic.

    Declaration
    public override void OnInit(Game game, GameElement parent)
    Parameters
    Type Name Description
    Game game

    The game instance.

    GameElement parent

    The parent game element.

    Overrides
    IGameBehavior.OnInit(Game, GameElement)

    OnRender(Game, GameElement)

    Cleanup method called when the behavior is destroyed. Override this method to provide custom cleanup logic.

    Declaration
    public override void OnRender(Game game, GameElement parent)
    Parameters
    Type Name Description
    Game game

    The game instance.

    GameElement parent

    The parent game element.

    Overrides
    IGameBehavior.OnRender(Game, GameElement)

    OnUpdate(Game, GameElement)

    Updates the collider's position and rotation based on its current state in the physics simulation.

    Declaration
    public override void OnUpdate(Game game, GameElement parent)
    Parameters
    Type Name Description
    Game game

    The game instance.

    GameElement parent

    The parent game element.

    Overrides
    IGameBehavior.OnUpdate(Game, GameElement)

    Rotate(Vec3)

    Rotates the collider by the specified vector of Euler angles.

    Declaration
    public virtual void Rotate(Vec3 value)
    Parameters
    Type Name Description
    Vec3 value

    A vector containing rotation angles for X, Y, and Z axes.

    Rotate(float, float, float)

    Rotates the collider by the specified Euler angles.

    Declaration
    public virtual void Rotate(float x, float y, float z)
    Parameters
    Type Name Description
    float x

    The rotation angle around the X-axis.

    float y

    The rotation angle around the Y-axis.

    float z

    The rotation angle around the Z-axis.

    Translate(Vec3)

    Translates the collider by the specified vector.

    Declaration
    public virtual void Translate(Vec3 value)
    Parameters
    Type Name Description
    Vec3 value

    The translation vector.

    Translate(float, float, float)

    Translates the collider by the specified distances.

    Declaration
    public virtual void Translate(float x, float y, float z)
    Parameters
    Type Name Description
    float x

    The distance to translate along the X-axis.

    float y

    The distance to translate along the Y-axis.

    float z

    The distance to translate along the Z-axis.

    In this article
    Back to top Generated by DocFX