Tumgik
cleavergames · 4 years
Link
First attempto at a ECS/DOD game engine developed with C and DirectX 
2 notes · View notes
cleavergames · 5 years
Text
how to add physics component to an entity programmatically
Because the physics collider of the dots physics package don’t implement IComponentData they can’t be added with the standard AdComponentData from the entity manager so this snippet demonstrates how to cimcumbert this by using a ComponentType array as some sort of archetype declaration.
EntityManager entityManager = World.DefaultGameObjectInjectionWorld.EntityManager; ComponentType[] componentTypes = new ComponentType[3]; componentTypes[0] = typeof(PhysicsCollider); componentTypes[1] = typeof(TranslationProxy); componentTypes[2] = typeof(RotationProxy); Entity entity = entityManager.CreateEntity(componentTypes); BlobAssetReference<Unity.Physics.Collider> spCollider = Unity.Physics.SphereCollider.Create(float3.zero, 2f); entityManager.AddComponentData(entity, new Translation { Value = float3.zero }); entityManager.AddComponentData(entity, new Rotation { Value = quaternion.identity }); entityManager.SetComponentData(entity, new PhysicsCollider { Value = spCollider });
0 notes
cleavergames · 6 years
Link
1 note · View note
cleavergames · 8 years
Video
undefined
tumblr
Coding Challenge #1: Open Frameworks 
i remade the coding challenge from this video using OpenFrameworks https://www.youtube.com/watch?v=17WoOqgXsRM
0 notes
cleavergames · 8 years
Video
undefined
tumblr
now with procedural mesh generation too! i still don't know why it jumps when it have too many sides.
0 notes
cleavergames · 8 years
Video
undefined
tumblr
Here is the gist for the code, right now its using debug line, im working on the mesh generation gist here
0 notes
cleavergames · 8 years
Text
Atlassian Bamboo and Unity Editor Tests
Here its how i configure bamboo to run unity through the command line and read the NUnit test results as valid input for the bamboo job 
We run bamboo cloud and a dedicated computer as the agent with unity 5.3.3f1 installed.
First inside bamboo we need to specify what agent have unity, choose the agent that have unity installed and add a capability with the path where unity is installed.
Tumblr media
Then inside a plan add a command task.
Tumblr media
As the argument pass the unity command line options  in my case it was
-batchmode -runEditorTests -projectPath ${bamboo.build.working.directory} -editorTestsResultFile ${bamboo.build.working.directory}
Note the bamboo variable ${bamboo.build.working.directory}, this is where bamboo checks out the code, we have the unity project at the root of the git repo.
Tumblr media
I also output the NUnit test results file in the same folder for easy access in the next step, the NUnit Parser.
Tumblr media
The file matcher with the wildcard automatically detect the test result file output in the same directory.
This is a preview with the current test.
Tumblr media
And this are the same test inside unity in my development machine.
Tumblr media
0 notes
cleavergames · 8 years
Text
custom Assert
public class Assert : NUnit.Framework.Assert { public static void VertexAreVertical(Vector3[] vertices){ MeshInspector inspector = new MeshInspector (); Assert.IsTrue (inspector.VertexAreVertical (vertices)); } }
usage
[Test] public void VertexVerticalLinePass() { Vector3[] verticalVertex = { new Vector3 (0, 0, 0), new Vector3 (0, 1, 0) }; Assert.VertexAreVertical(verticalVertex); Vector3[] verticalVertexReverseOrder = { new Vector3 (0, 1, 0), new Vector3 (0, 0, 0) }; Assert.VertexAreVertical(verticalVertexReverseOrder); }
0 notes
cleavergames · 8 years
Link
0 notes
cleavergames · 8 years
Photo
Tumblr media
intuos 4 medium new into the workspace :D
1 note · View note
cleavergames · 8 years
Link
a drone racing game am developing prototype, any feedback its welcome
0 notes
cleavergames · 9 years
Video
undefined
tumblr
scrolling normal map
1 note · View note