/** * @brief Create the internal shape used to represent a TSBoxCollider. **/ public override KBEngine.Physics2D.Shape CreateShape() { FPVector size3 = new FPVector(size.x, size.y, 1); FPVector sizeScaled = FPVector.Scale(size3, lossyScale); return(new KBEngine.Physics2D.PolygonShape(KBEngine.Physics2D.PolygonTools.CreateRectangle(sizeScaled.x * FP.Half, sizeScaled.y * FP.Half), 1)); }
protected override Vector3 GetGizmosSize() { FPVector size3 = new FPVector(size.x, size.y, 1); return(FPVector.Scale(size3, lossyScale).ToVector()); }
protected override Vector3 GetGizmosSize() { return(FPVector.Scale(size, lossyScale).ToVector()); }
/** * @brief Create the internal shape used to represent a TSBoxCollider. **/ public override Shape CreateShape() { return(new BoxShape(FPVector.Scale(size, lossyScale))); }