cone

package
v0.0.0-...-8e5a076 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: GPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	Mat      *material.Def
	Radius   float32
	Height   float32
	Segments int
	Color    color.T
}

type Cone

type Cone struct {
	Object
	Mesh     *Mesh
	Collider *physics.Mesh
}

func New

func New(pool Pool, args Args) *Cone

type Mesh

type Mesh struct {
	*mesh.Static
	Radius   Property[float32]
	Height   Property[float32]
	Segments Property[int]
	Color    Property[color.T]
}

A Cone is a forward rendered colored cone mesh

func NewMesh

func NewMesh(pool Pool, args Args) *Mesh

Jump to

Keyboard shortcuts

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