x


Doubt about Raycast Performance

Hey everyone. I'm helping in the programming of an A.R game for the iOS and I'm using a bit of raycast to get random positions off of the camera limits to spawn the mobs with camera.ViewportPointToRay.

I'm generating raycasts for bottom-left and right and upper-left and right corners to get the collision point of the ray and then going through the process of randomly choose a position to instantiate the enemy. This process is done each 4-7 seconds.

Did you guys think that this can cause some performance issues when running in an iPhone? There's other way I can get an off limits of view position without using raycast if this way is too expensive?

The point in use a constant limit is that the player will be constantly moving the phone and that would cause some strange instantiation.

more ▼

asked Apr 24, 2012 at 09:07 PM

GutoThomas gravatar image

GutoThomas
718 109 92 98

(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x2900
x2895
x1119
x1

asked: Apr 24, 2012 at 09:07 PM

Seen: 1495 times

Last Updated: Apr 24, 2012 at 09:07 PM