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:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user