Sign in

    Milky2018/mgstudio/physics3d does not have a README file

    HasRes_Physics3dConfig

    pub(open) trait HasRes_Physics3dConfig {
    get_physics3d_config_resource(self : Self) ->
    Resource
    [Physics3dConfig]
    }

    HasRes_Physics3dContext

    pub(open) trait HasRes_Physics3dContext {
    get_physics3d_context_resource(self : Self) ->
    Resource
    [Physics3dContext]
    }

    HasRes_Physics3dEvents

    pub(open) trait HasRes_Physics3dEvents {
    get_physics3d_events_resource(self : Self) ->
    Resource
    [Physics3dEvents]
    }

    Has_Collider3d

    pub(open) trait Has_Collider3d {
    get_collider3d_store(self : Self) ->
    ComponentStore
    [Collider3d]
    }

    Has_RapierBodyHandle3d

    pub(open) trait Has_RapierBodyHandle3d {
    get_rapier_body_handle3d_store(self : Self) ->
    ComponentStore
    [RapierBodyHandle3d]
    }

    Has_RapierColliderHandle3d

    pub(open) trait Has_RapierColliderHandle3d {
    get_rapier_collider_handle3d_store(self : Self) ->
    ComponentStore
    [RapierColliderHandle3d]
    }

    Has_RigidBody3d

    pub(open) trait Has_RigidBody3d {
    get_rigid_body3d_store(self : Self) ->
    ComponentStore
    [RigidBody3d]
    }

    Has_Velocity3d

    pub(open) trait Has_Velocity3d {
    get_velocity3d_store(self : Self) ->
    ComponentStore
    [Velocity3d]
    }

    Collider3d

    pub struct Collider3d {
    shape : ColliderShape3d
    sensor : Bool
    }

    Collider3d::new

    Collider3d::sensor

    fn Collider3d::sensor(self : Collider3d, sensor : Bool) -> Collider3d

    ColliderShape3d

    pub enum ColliderShape3d {
    Ball(Float)
    Cuboid(Float, Float, Float)
    }

    ColliderShape3d::ball

    fn ColliderShape3d::ball(radius : Float) -> ColliderShape3d

    Constructors for ColliderShape3d.

    MoonBit exports enums as "read-only" by default, so external packages cannot construct ColliderShape3d via ColliderShape3d::Ball(...).

    ColliderShape3d::cuboid

    fn ColliderShape3d::cuboid(hx : Float, hy : Float, hz : Float) -> ColliderShape3d

    Physics3dConfig

    pub struct Physics3dConfig {
    gravity :
    Vec3

    }

    Physics3dConfig::default

    Physics3dEvents

    pub struct Physics3dEvents {
    collisions : Array[CollisionEvent3d]
    }

    Physics3dEvents::clear

    fn Physics3dEvents::clear(self : Physics3dEvents) -> Unit

    Physics3dEvents::new

    RigidBody3d

    RigidBody3d::dynamic

    fn RigidBody3d::dynamic() -> RigidBody3d

    RigidBody3d::fixed

    fn RigidBody3d::fixed() -> RigidBody3d

    RigidBody3d::kinematic_position_based

    fn RigidBody3d::kinematic_position_based() -> RigidBody3d

    RigidBody3d::kinematic_velocity_based

    fn RigidBody3d::kinematic_velocity_based() -> RigidBody3d

    Velocity3d

    pub struct Velocity3d {
    linvel :
    Vec3

    angvel :
    Vec3

    }

    Velocity3d::zero

    fn Velocity3d::zero() -> Velocity3d

    ecs_components

    let ecs_components : Array[String]

    ECS component types discovered via #ecs.component.

    ecs_resources

    let ecs_resources : Array[String]

    ECS resource types discovered via #ecs.resource.

    physics3d_cleanup_despawned_system

    physics3d_clear_events_system

    fn[W :
    ChangeTickWorld
    + HasRes_Physics3dEvents] physics3d_clear_events_system(world : W) -> Unit

    physics3d_init_resources_system