Skip to content

Instantly share code, notes, and snippets.

View gostrafx's full-sized avatar

GOSTRA FX gostrafx

View GitHub Profile
@gostrafx
gostrafx / NavMeshGenA.cs
Last active April 15, 2024 03:15 — forked from druggedhippo/NavMeshGenA.cs
Unity Navigation mesh by terrain texture
/****
Video : https://www.youtube.com/watch?v=o-Txv086giU
NOTE NOTE NOTE
1. Add this component to a terrain
2. Set your area ID's to be what you want the agent to think each surface in your terrain is (eg, Grass, Path), in the same order as the textures assigned in the terrain textures
3. Set "Defaultarea" to be whatever texture you expect to be the "most" common terrain texture. Generall this will be the first texture you assigned in step 1, eg "Grass"
IF THIS IS STILL TO SLOW:
@gostrafx
gostrafx / commit-emojis.md
Created March 21, 2024 14:51 — forked from georgekrax/commit-emojis.md
List of emojis for GitHub commit messages
Emoji Purpose MD Markup Prefix
📄 Generic message :page_facing_up:
📐 Improve the format / structure of the code / files :triangular_ruler: [IMPROVE]:
Improve performance :zap: [IMPROVE]:
🚀 Improve something (anything) :rocket: [IMPROVE]:
📝 Write docs :memo: [PROD]:
💡 New idea
@gostrafx
gostrafx / GitCommitEmoji.md
Created March 21, 2024 14:46 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji
@gostrafx
gostrafx / getBinarySearch.js
Created March 27, 2023 16:11 — forked from westc/getBinarySearch.js
getBinarySearch() - Takes an array of values and returns a function that can be used to carry out the binary search on those values.
/**
* Takes an array of values and returns a function that can be used to
* carry out the binary search on those values. The returned function
* takes one argument to indicate which direction the desired value may
* be found (send a negative number to look further back, a positive
* number to look further ahead or a `0` to return the same value as
* before). It doesn't matter what value you pass the first time you
* call the returned function.
* @template T
* @param {T[]} values
import { Injectable } from '@angular/core'
import {
Cordova,
CordovaProperty,
IonicNativePlugin,
Plugin
} from '@ionic-native/core'
import { Observable } from 'rxjs/Observable'
import { Platform } from 'ionic-angular'