Search Feedback

40
votes

CompositeCollider2D Vector2[] GetPoints() API UPDATE REQUIRED

2D

-

-

Hi, everyone

I checked api for CompositeCollider2D and there have no api to get points array after composing.
It have api to get pointsCount, but I need points!
Why I cant get this points?

BUT there also have GetPath(); GetPathPointCount(); pathCounts; which is unusable in development and just not needed

In my case I want use CompositeCollider to find facade points of my building in which each rooms is PolygonCollider, because this is fast and works well without glitches in calculating.

If I was good in math then, sure, I was wrote custom method and use it.
But since Unity targeting on designers too, they need to make less math in api

Comments (1)

  1. Fc15ab5c30c5ff52487cbc269455866f?d=mm

    Tihonyuk

    Sep 29, 2017 18:53

    Also I forget one thing, In in inspector we can see collision points under Info tab, but I cant get this array from Collider2D API.
    I need to write scripts which will have OnCollisionEnter(Collision collision) and only then I can get access to collisionPoints which is VERY uncomfortable.

Your opinion counts

Help us make things better. Share your great idea for improving Unity or vote for other people’s.

Log in to post a new idea

Categories

All

(9110)

2D

(224)

Ads

(40)

AI & Navigation

(68)

Analytics

(96)

Animation

(309)

Asset Store

(229)

Assets

(493)

Audio

(158)

Cloud Build

(95)

Collaborate

(32)

Docs & Tutorials

(198)

Editor

(2102)

Everyplay

(13)

Game Performance Reporting

(13)

General

(819)

Graphics

(768)

GUI

(365)

Input

(146)

Licensing

(75)

Networking

(158)

Physics

(343)

Platforms

(405)

Profiling & Optimization

(69)

Runtime

(162)

Scripting

(1022)

Terrain

(150)

WebGL

(131)