Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Search
Login
Register
www.jpct.net
»
jPCT - a 3d engine for Java
»
Support
»
Getting the triangle of the ground with only an x/z value
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Getting the triangle of the ground with only an x/z value (Read 1690 times)
AGP
quad
Posts: 1726
Getting the triangle of the ground with only an x/z value
«
on:
June 17, 2012, 08:28:28 am »
I had a quick look at the PolygonManager class, but it seems to require the polygon's ID, which I don't have. So how do I get a specific polygon from the ground directly under my model? Thanks in advance.
Logged
EgonOlsen
Administrator
quad
Posts: 12295
Re: Getting the triangle of the ground with only an x/z value
«
Reply #1 on:
June 17, 2012, 11:00:15 am »
By triggering a collision. For example using calcMinDistance or similar. You can get the polygon id from the CollisionEvent if your listener implementation returns that you want these ids.
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
www.jpct.net
»
jPCT - a 3d engine for Java
»
Support
»
Getting the triangle of the ground with only an x/z value