wren
Vulkan-based game engine
Loading...
Searching...
No Matches
wren::scene::components::BoxCollider2D Struct Reference

#include <collider.hpp>

Inheritance diagram for wren::scene::components::BoxCollider2D:
Collaboration diagram for wren::scene::components::BoxCollider2D:

Public Member Functions

auto raycast (const Transform &transform, const math::Vec3f &origin, const math::Vec3f &direction) const -> std::optional< math::Vec3f > override
 
- Public Member Functions inherited from wren::scene::components::Base
 Base ()=default
 
 Base (const Base &)=default
 
 Base (Base &&)=delete
 
auto operator= (const Base &) -> Base &=default
 
auto operator= (Base &&) -> Base &=delete
 
virtual ~Base ()=default
 

Static Public Member Functions

static void init (const flecs::world &world)
 

Public Attributes

math::Vec2f size
 

Additional Inherited Members

- Public Types inherited from wren::scene::components::Collider
using Ptr = std::shared_ptr<Collider>
 

Member Function Documentation

◆ init()

static void wren::scene::components::BoxCollider2D::init ( const flecs::world & world)
inlinestatic

◆ raycast()

auto wren::scene::components::BoxCollider2D::raycast ( const Transform & transform,
const math::Vec3f & origin,
const math::Vec3f & direction ) const -> std::optional<math::Vec3f>
nodiscardoverridevirtual

Implements wren::scene::components::Collider.

Here is the call graph for this function:

Member Data Documentation

◆ size

math::Vec2f wren::scene::components::BoxCollider2D::size

The documentation for this struct was generated from the following files: