fix the child position incorrect while parenting node; add camera focus func; treat icons to the asset and using AssetsManager::GetAsset to load it

This commit is contained in:
2026-02-17 21:38:43 +08:00
parent 2bbe332532
commit 99bbf1eb5a
29 changed files with 414 additions and 254 deletions

View File

@ -50,7 +50,7 @@ namespace Prism
public Vec3 Size { get; protected set; }
public Vec3 Offset { get; protected set; }
private BoxCollider(ulong entityID, bool isTrigger, Vec3 size, Vec3 offset)
internal BoxCollider(ulong entityID, bool isTrigger, Vec3 size, Vec3 offset)
{
EntityID = entityID;
Size = size;
@ -63,7 +63,7 @@ namespace Prism
{
public float Radius { get; protected set; }
private SphereCollider(ulong entityID, bool isTrigger, float radius)
internal SphereCollider(ulong entityID, bool isTrigger, float radius)
{
EntityID = entityID;
Radius = radius;
@ -76,7 +76,7 @@ namespace Prism
public float Radius { get; protected set; }
public float Height { get; protected set; }
private CapsuleCollider(ulong entityID, bool isTrigger, float radius, float height)
internal CapsuleCollider(ulong entityID, bool isTrigger, float radius, float height)
{
EntityID = entityID;
Radius = radius;
@ -89,7 +89,7 @@ namespace Prism
{
public Mesh Mesh { get; protected set; }
private MeshCollider(ulong entityID, bool isTrigger, IntPtr filepath)
internal MeshCollider(ulong entityID, bool isTrigger, IntPtr filepath)
{
EntityID = entityID;
Mesh = new Mesh(filepath);