Reply
25 Apr 2012
By msccd
Member
Playstation Staff

How can I get intersections on models?

3 Replies 181 Views Created 25-04-2012

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.
Reply
0 Kudos
Message 1 of 4 (181 Views)
Reply
0 Kudos
Level 6
 
Playstation Staff

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.
Reply
0 Kudos
Message 2 of 4 (136 Views)
Reply
0 Kudos
Level 2
 
Playstation Staff

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.
Reply
0 Kudos
Message 3 of 4 (114 Views)
Reply
0 Kudos
Level 6
 
Playstation Staff

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.
Reply
0 Kudos
Message 4 of 4 (61 Views)
Reply
0 Kudos