Skip to content

Instantly share code, notes, and snippets.

View burkaslarry's full-sized avatar
🎯
Focusing

Larry burkaslarry

🎯
Focusing
View GitHub Profile
@burkaslarry
burkaslarry / CarControllerTouch.cs
Last active October 31, 2019 12:28
Unity : Moving object by drag : constant speed, deceleration, and acceleration and deceleration
using UnityEngine;
using System.Collections;
public class CarControllerTouch : MonoBehaviour
{
float speed = 10f;
Vector3 destination;
float rotSpeed = 10;
@burkaslarry
burkaslarry / kotlin
Created May 30, 2019 12:59
Setup Equal Spacing of Grid Layout of RecyclerView
class SpacesItemDecoration (): RecyclerView.ItemDecoration() {
override fun getItemOffsets(
outRect: Rect, view: View, parent: RecyclerView,
state: RecyclerView.State