Skip to content

Commit

Permalink
Feat: Billboard (#192)
Browse files Browse the repository at this point in the history
Introduced Billboard feature as Explorer/Assets/DCL/Billboard

Locate at

Nullables enabled

Covered with tests

For demo created scenes

Assets/DCL/Billboard/Demo/BillboardDemoTest.unity - shows multiple

Assets/DCL/Billboard/Demo/BillboardPlayground.unity - makes possible to tweak options in runtime and to see a difference

IDemoWorld for easy reuse


* dirty marker extensions for fluently

* nullable enable feature activated

* BillboardComponent

* single instance entity extension

* single entity optional extensions

* Billboard feature, first version

* billboards back to StaticContainer

* gizmos forward debug tool

* billboard component name correction

* Billboard demo test

* BillboardDemoTestBoot exclude settings

* move Billboard as separated feature

* remove redundant BillboardComponent, workflow on PbBillboard

* array extensions

* billboard world

* worlds reorganize

* tests base

* billboard playground

* math on bitwise BillboardSystem

* nullable in test assembly: DLC/Tests/PlayMode

* tests

* fix asmdef with comma

* async according convention

* update cached values on apply

* billboard remove colliders

* demo world setup optimization

* TransformComponent apply inlining

* fix Apply rotation at TransformComponent, added world rotation update

* TransformComponent optimize SetLocalPositionAndRotation

* Billboard performance test
  • Loading branch information
NickKhalow authored Dec 13, 2023
1 parent 8bd208d commit e0e44f9
Show file tree
Hide file tree
Showing 53 changed files with 1,760 additions and 14 deletions.
3 changes: 3 additions & 0 deletions Explorer/Assets/DCL/Billboard.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions Explorer/Assets/DCL/Billboard/Billboard.asmdef
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "Billboard",
"rootNamespace": "",
"references": [
"GUID:1b8e1e1bd01505f478f0369c04a4fb2f",
"GUID:4794e238ed0f65142a4aea5848b513e5",
"GUID:275e22790c04e9b47a5085d7b0c4432a",
"GUID:3c7b57a14671040bd8c549056adc04f5",
"GUID:0f4c0f120707fb74497f5d581b9858f8",
"GUID:fa7b3fdbb04d67549916da7bd2af58ab",
"GUID:08b2edf8f14cdd3408988fd7746b749c",
"GUID:d414ef88f3b15f746a4b97636b50dfb4",
"GUID:f51ebe6a0ceec4240a699833d6309b23"
],
"includePlatforms": [],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
}
3 changes: 3 additions & 0 deletions Explorer/Assets/DCL/Billboard/Billboard.asmdef.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Explorer/Assets/DCL/Billboard/DebugTools.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions Explorer/Assets/DCL/Billboard/DebugTools/GizmosForward.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using UnityEngine;

namespace DCL.Billboard.DebugTools
{
public class GizmosForward : MonoBehaviour
{
private void OnDrawGizmos()
{
Gizmos.color = Color.green;
Gizmos.DrawLine(transform.position, transform.position + transform.forward);
}
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Explorer/Assets/DCL/Billboard/Demo.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e0e44f9

Please sign in to comment.