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-AE - a 3d engine for Android
»
Support
»
Invisible collision border
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Invisible collision border (Read 2532 times)
Berunin
byte
Posts: 3
Invisible collision border
«
on:
January 12, 2013, 04:36:20 pm »
Hello all.. I create little game and I do not know how to make invisible collide border...
If i set border.setTransparency(0) or -1
object is transparent but still visible....
Please help (sorry for my english)
Logged
Thomas.
double
Posts: 833
Re: Invisible collision border
«
Reply #1 on:
January 12, 2013, 05:17:54 pm »
I do not know what exactly you mean, but you should try Object3D.setVisibility(false)...
Logged
My game for Android
,
Physics example
,
Texture assistant
Berunin
byte
Posts: 3
Re: Invisible collision border
«
Reply #2 on:
January 12, 2013, 05:34:20 pm »
set.visibility(false) == colision off .. true?
Thanks but I've found a solution here, I have to turn off the effect of light on the subject
border.setLighting(Object3D.LIGHTING_NO_LIGHTS);
ps:zdravim krajana
Logged
EgonOlsen
Administrator
quad
Posts: 12297
Re: Invisible collision border
«
Reply #3 on:
January 12, 2013, 05:48:35 pm »
Set the object to invisible for rendering and to visible for collision detection. Doing it your way might work but it slows down rendering with no need.
Logged
Berunin
byte
Posts: 3
Re: Invisible collision border
«
Reply #4 on:
January 12, 2013, 06:38:15 pm »
Thank you very much your solution occurred to me, I'll try it but my solution works well and no slowdown see it.
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
www.jpct.net
»
jPCT-AE - a 3d engine for Android
»
Support
»
Invisible collision border