GFX
  • Docs
  • API
Search Results for

    Show / Hide Table of Contents
    • Genesis.Core
      • AssetManager
      • Game
      • GameElement
      • GameEventHandler
      • GenesisWindow
      • IGameBehavior
      • Input
      • Layer
      • Light
      • Scene
      • Scene3D
      • SceneEventHandler
      • SceneSizeEvenHandler
      • Storage
      • Utils
    • Genesis.Core.Behaviors
      • AnimationBehavior
      • CameraFlags
      • CharacterController2D
      • ControllerPreset
      • MoveDirection
      • MovementFlags
      • SpriteMovementController
    • Genesis.Core.Behaviors.Physics2D
      • BufferedSpriteCollider
      • PhysicsBox2D
      • PhysicsPolygon2D
      • Rigidbody2D
    • Genesis.Core.Behaviors.Physics3D
      • BoxCollider
      • CapsuleCollider
      • ConvexHullBehavior
      • QubeConvexHull
      • SphereCollider
      • StaticMeshBehavior
    • Genesis.Core.Behaviors._3D
      • Stance
      • ThirdpersonCharacterController
    • Genesis.Core.GameElements
      • BufferedSprite
      • CameraElement
      • Element3D
      • Empty
      • Model
      • ParticleBuffers
      • ParticleDeffinition
      • ParticleEmitter
      • Qube
      • RectElement
      • Skybox
      • Sprite
      • SpriteShapeDeffinition
      • Terrain2D
      • Terrain3D
      • TerrainData
    • Genesis.Graphics
      • Animation
      • Camera
      • CameraType
      • Face
      • Font
      • Framebuffer
      • Glyphe
      • IRenderDevice
      • Material
      • MaterialBuffer
      • Mesh
      • PerspectiveCamera
      • Shader
      • ShaderProgram
      • TexCoords
      • Texture
      • Viewport
    • Genesis.Graphics.Animation3D
      • Animation
      • Animator
      • AssimpNodeData
      • Bone
      • KeyPosition
      • KeyRotation
      • KeyScale
      • ModelMesh
      • boneinfo
      • vertex
    • Genesis.Graphics.Physics
      • BulletDebugRenderer
    • Genesis.Graphics.RenderDevice
      • ClassicGL
      • GLRenderer
    • Genesis.Graphics.Shaders.OpenGL
      • AnimatedModelShader
      • BasicShader
      • DiffuseLightning
      • DiffuseNormalLightning
      • DiffuseNormalShader
      • DiffuseShader
      • DiffuseSolidShader
      • MVPRectShader
      • MVPShader
      • MVPSolidShader
      • ParticleShader
      • ScreenShader
      • SkyboxShader
      • SpriteShader
      • TerrainShader
      • WireframeShader
    • Genesis.Graphics.Shapes
      • BufferedSpriteShape
      • FrameShape
      • GlypheShape
      • LineShape
      • PlaneShape
      • QubeShape
      • RectShape
      • Shape
      • SpriteShape
    • Genesis.Math
      • Matrix4x4
      • NoisePoint
      • PerlinNoise
      • Rect
      • Vec3
    • Genesis.Physics
      • Aabb
      • HitResult
      • MatrixSet
      • MouseRay2
      • PhysicHandler
      • PhysicHandlerEvent
      • PhysicPropeterys
      • PhysicsBehavior
      • PhysicsBehaviorEvent
      • PhysicsHandler2D
      • PhysicsHandler3D
      • Raycast
    • Genesis.UI
      • Canvas
      • ImageButton
      • Label
      • ListItem
      • ListItemBehavior
      • ListSelector
      • ListSelectorBehavior
      • Panel
      • ProgressBar
      • UIEvent
      • UIParseHandler
      • UIParser
      • Widget

    Class Aabb

    Represents an Axis-Aligned Bounding Box (AABB) in 3D space.

    Inheritance
    object
    Aabb
    Inherited Members
    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 Aabb

    Constructors

    Aabb()

    Creates a new AABB with default values.

    Declaration
    public Aabb()

    Aabb(Vector3, Vector3)

    Creates a new AABB with specified minimum and maximum values.

    Declaration
    public Aabb(Vector3 min, Vector3 max)
    Parameters
    Type Name Description
    Vector3 min

    Minimum corner

    Vector3 max

    Maximum corner

    Properties

    Max

    Gets or sets the maximum corner of the AABB.

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

    Min

    Gets or sets the minimum corner of the AABB.

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

    Methods

    Contains(Vec3)

    Checks if the AABB contains a specified point.

    Declaration
    public bool Contains(Vec3 v)
    Parameters
    Type Name Description
    Vec3 v

    Point to check

    Returns
    Type Description
    bool

    True if the point is inside the AABB, otherwise false

    FromBulletRigidBody(RigidBody)

    Returns the AABB of a Bullet rigid body.

    Declaration
    public static Aabb FromBulletRigidBody(RigidBody rigidBody)
    Parameters
    Type Name Description
    RigidBody rigidBody

    Bullet RigidBody

    Returns
    Type Description
    Aabb

    Aabb representing the bounding box of the rigid body

    IntersectRay(Vec3, Vec3, Vec3, Vec3)

    Checks if a ray intersects with the AABB.

    Declaration
    public static bool IntersectRay(Vec3 rayOrigin, Vec3 rayDirection, Vec3 aabbMin, Vec3 aabbMax)
    Parameters
    Type Name Description
    Vec3 rayOrigin

    Origin of the ray

    Vec3 rayDirection

    Direction of the ray

    Vec3 aabbMin

    Minimum corner of the AABB

    Vec3 aabbMax

    Maximum corner of the AABB

    Returns
    Type Description
    bool

    True if the ray intersects with the AABB, otherwise false

    In this article
    Back to top Generated by DocFX