Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
I've been experimenting with ai. So far, these files are the ones working, for the most part. [url]https://chicoporter.itch.io/3rd-person-spaceship-controls[/] |
||||
|
good stuff , works really well! Heres some code to hide a flare when behind an object i use for light flare. Works level in a game level. not sure how it will look with sun, lol Goes in the camera, only needs to be executed even few seconds. so about 64ms Sam var startPos3D = ccbGetSceneNodeProperty(ccbGetActiveCamera() , "Position"); var sm = ccbGetSceneNodeFromName("flare"); var endPoint3d = ccbGetSceneNodeProperty(sm,"Position"); //*------------------------------------------------------------------------------------------------------------------------------------------ var col_point = ccbGetCollisionPointOfWorldWithLine(startPos3D.x, startPos3D.y, startPos3D.z, endPoint3d.x, endPoint3d.y, endPoint3d.z) if (col_point == null ) { ccbSetSceneNodeProperty(sm , "Visible",true); }else { ccbSetSceneNodeProperty(sm , "Visible", false); } //*----------------------------------------------------------------------------------------------------------------------------------------- // end |
||||
|
The controls make me think of Freelancer. good stuff! Sam |
||||
|
it's only 2DOF, bruh |
||||
|
I loved Freelancer! I'll post some other stuff I'm doing for my game. |
||||
|
Freelancer is still my favorite space sim. Ive liked the others. But its the G.o.a.t. lol As for the 2dof. Wouldn't be hard to add rotation q and e keys like freelancer.. it's may have just rotated the world instead of the ship. I look forward to seeing what else you have done. Ive been hacking up just in case , pixel light shader. Ive got it working with light maps now. And have made the lights a bit brighter. Specular can be occluded if you also use the light map as a secular map.. or atleast it dims. Im new to shaders so , just muddling through. Lol also need to add the position of a light when its a child of another node ( like the camera) . I can't release it, but if get something decent going , I can send it to him. To do with as he pleases. Sam. |
||||
|
I have more: https://chicoporter.itch.io/ |
||||
|
|