mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 10:46:17 +00:00
提交
This commit is contained in:
@@ -7,6 +7,13 @@ namespace JNGame.Sync.Frame.Entity.Component.Components
|
||||
{
|
||||
public class JNTransformComponent : JNComponent
|
||||
{
|
||||
|
||||
public LVector3 Position = new();
|
||||
|
||||
public bool IsRange(LVector3 target,LFloat len)
|
||||
{
|
||||
return LVector3.Distance(Position, target) <= len;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user