This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "Interpolator.h" | |
bool Interpolator::Set(float aStartValue, float aEndValue, float aDuration) | |
{ | |
bool isValidArgs = true; | |
startValue = aStartValue; | |
endValue = aEndValue; | |
if (aDuration <= 0) { | |
duration = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
MIT License | |
Copyright (c) 2024 Manoj M J | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <list> | |
#include <algorithm> | |
using namespace std; | |
struct MoneyBundle | |
{ | |
int denomination; | |
int count; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Copyright © 2010 - 2021 Manoj M J | |
//All Rights Reserved | |
[Game Development] | |
[Foundations] | |
[TOC] | |
Introduction | |
Platforms | |
Programming |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Copyright © 2017 Manoj M J | |
//All Rights Reserved | |
/* | |
A method to slide camera along an obstacle. | |
Note: This script uses Unity3D game engine api and libraries. | |
*/ | |
void SlideCameraOnCollision( | |
Vector3 obstacleNormal, | |
Vector3 cameraForward, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#if defined(_WIN32) | |
#define BUILD_FOR_WINDOWS | |
#endif | |
#ifdef BUILD_FOR_WINDOWS | |
#pragma warning(disable:4996) | |
#define _WINSOCK_DEPRECATED_NO_WARNINGS | |
#endif | |
#include <stdio.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Displays gameobjects linked to each script present in a scene, useful for development and debugging. | |
* Added features: | |
* You can search for a particular component, and turn off UnityEngine componets from displaying. | |
* While searching you don't have to type the entire name. | |
*/ | |
using UnityEngine; | |
using UnityEditor; | |
using System.Collections; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Here in this file, I am explaining the reasons for putting | |
"All Rights Reserved" notice. | |
This may be because of some or all of the following reasons. | |
- I cannot put the code in public domain, some one else may copy it and copyright it and there after I may not modify and redistribute it. | |
- The code I made may be not of professional quality. | |
- I am only demonstrating an idea and / or an approach of problem solving | |
- Or it is a mere collection of some data useful for development purpose | |
- Or it may be a work in progress, published only for preview |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Copyright © 2015 Manoj M J | |
//All Rights Reserved | |
using UnityEngine; | |
using System.Collections; | |
public class TransformTreePreOrderTraversor : MonoBehaviour | |
{ | |
void Start () { | |
TraverseInPreOrder(this.gameObject.transform); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Moved to GitHub: | |
https://github.com/mmj-the-fighter/DCM |
NewerOlder