Gamem 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Gamem --version 1.0.0
                    
NuGet\Install-Package Gamem -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Gamem" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Gamem" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Gamem" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Gamem --version 1.0.0
                    
#r "nuget: Gamem, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Gamem@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Gamem&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Gamem&version=1.0.0
                    
Install as a Cake Tool

Gamem

🎮 This library allows you to use physics and math methods for developing your games 👾

If you want to use Geometry methods you can use my another library → GeometrySharp

Installation

Type this command:

dotnet add package Gamem

How to use

To use Gamem methods type this:

using Gamem;

Examples

🧮 Math

// Generates a random number between 2.5 and 7.5
float speed = MathGamem.RandomRange(2.5f, 7.5f);

// Smoothly interpolates from 0.0 to 100.0 based on progress (0.0 to 1.0)
double currentAlpha = MathGamem.SmoothStep(0.0, 100.0, progress);

🏃 Physics

Friction and gravity

double velocityX = 10.0;
double velocityY = 0.0;
double deltaTime = 0.016; // 60 FPS

// Apply gravity if the character is in the air
double gravity = -9.81;
velocityY = Physics.ApplyGravity(velocityY, gravity, deltaTime);

// Apply friction to slow down the character on the ground
double friction = 5.0;
velocityX = Physics.ApplyFriction(velocityX, friction, deltaTime);
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.
  • net8.0

    • No dependencies.
  • net9.0

    • No dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Gamem:

Package Downloads
Gamem.Godot

Gamem extension for Godot (supports vectors)

Gamem.MonoGame

Gamem extension for MonoGame (supports vectors)

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.1.1 99 6/13/2026
2.1.0 114 6/13/2026
2.0.0 138 6/1/2026
1.3.0 105 5/30/2026
1.2.0 109 5/28/2026
1.1.0 109 5/27/2026
1.0.0 101 5/24/2026