Graphics

Reply

Level 1

Level 1
msccd
Posts: 9
Registered: ‎24-04-2012
Message 1 of 4 (165 Views)

How can I get intersections on models?

Hello
Does anyone know good samples to learn how to get intersections on models?

Any advice will be appreciated.

 

Thank you in advance.:Smile:

Please use plain text.

Re: How can I get intersections on models?

HI Msccd,

Welcome to the forums. Have you taken a look at the BasicModelSample or the RpgDemo?
PlayStation®Mobile Dev Team
Please use plain text.

Level 1

Level 1
msccd
Posts: 9
Registered: ‎24-04-2012
Message 3 of 4 (98 Views)

Re: How can I get intersections on models?

Hello jamesnorman91

Thank you for reply.
I just started tracing RpgDemo.
Do I need to get triangles somehow and to use CheckLineAndTriangle method of CommonCollision.cs?
Please use plain text.

Re: How can I get intersections on models?

Yes, CommonCollission is a good place to look. A common approach for getting intersections is to get the bounding speres of the models and offset these with it's position. You can then do some math to see if there is an intersection between this mo

 

Hope this helps :smileywink:

 

James

PlayStation®Mobile Dev Team
Please use plain text.
Announcements

Welcome to the PlayStation Mobile Developer Forums


This is a community for the discussion of technical topics with other developers and SCE engineers. Posting ideas/requests are also appreciated. Join the discussion!

PlayStation®Mobile開発者フォーラムでは世界中の開発者の皆様と一緒に、議論や情報交換が可能です。SCEも議論に参加し、皆様の開発をサポートします。アイデアやリクエストも大歓迎です。ぜひご参加ください。

PSM Developer Registration (for free) on PSM DevPortal is required to post on the forum.
Please sign out then sign in again to the forum and PSM DevPortal after you have completed the registration.

フォーラムへ投稿をするにはPSM DevPortalへの登録(無料)が必要です。
登録後はフォーラムと PSM DevPortalを一度ログアウトし、再度ログインしてください。