Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Programming and Scripting
raycast

ehsan
Registered User
Quote
2021-02-28 16:57:01

is there raycast command by coppercube


csp-games
Guest
Quote
2021-02-28 18:19:06

if by raycast you mean a linepick, then yes:

var coll= ccbGetCollisionPointOfWorldWithLine(startX, startY, startZ, endX, endY, endZ)

will give you collision coords in coll.x, coll.y and coll.z, or false if there was no collision, so:
if(!coll) {
// no collision
}else{
alert(coll.x);
}


ku klux klonoa
Guest
Quote
2023-12-26 08:14:30

hey bro why do you even want raycasting when true 3d rendering is superior


Guest
Guest
Quote
2023-12-26 12:21:30

What's your point @ku klux klonoa?

sounds like another lack of knowledge about the right term usage between raycasting & raytracing ...

Wikipedia:

"The Ku Klux Klan ... commonly shortened to the KKK or the Klan, is the name of several historical and current American white supremacist, far-right terrorist organizations and hate groups."


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Inte?national" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact