mesh

package
v0.0.0-...-ddc071b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collider

type Collider interface {

	//Origin() returns the world space transformed mesh origin
	Origin() vector.Vec

	//UpdateOrigin() Updates the collider world space transformed origin
	UpdateOrigin(vector.Vec)

	//ImplicitCollide() Parametric Solver Returns boolean for collision inside
	//plane and the float32 distance t for the collision. Typically if the distance
	//is within some epsilon value you would count a collision
	ImplicitCollide(point *vector.Vec, dir *vector.Vec) (collide bool, dist float32)

	//ExplicitCollide() non-paramteric tests if the ray crosses some threshold by
	//marching the ray some distance. Returns only whether a collision happened
	//due to sign changing
	ExplicitCollide(point *vector.Vec, dir *vector.Vec, dist float32) (collide bool)

	//RenderObjectID Associates a Mesh with its render object
	RenderObjectID() int

	//IsStatic recognizes if the collider is static in world space
	IsStatic() bool
}

Collider Interface Represents Polymorphic types for Mesh Attached Colliders which may have an underlying vertice buffer/ parametric curve type surface for SDF representation

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL