Game Development Community

What is a Scene Object used for?

by Robert Dowling · in Torque Game Builder · 02/23/2008 (7:08 pm) · 6 replies

Hello,

Under the 'Other' tab in TGB there are a group of objects available; Trigger, path etc. What is the 'Scene Object' used for?
I know there's scene object properties under sprites, is this used for groups and mounting other objects?

Rob

#1
02/23/2008 (7:20 pm)
I use scene objects primarily for sensors for character movement. I mount the scene objects to various positions on the character, and they return whether they are colliding with the terrain or not.

Basically, you can use them for any invisible wall, sensor, or whatever else you can think of.
#2
02/23/2008 (7:30 pm)
Ahh, that's awesome, and very useful.

Thank you Kevin :)
#3
02/23/2008 (10:30 pm)
They can also be used to help combat that convex poly rule. If you wanted a nice concave section on a surface, you can build it up of multiple scene objects who's poly's are convex.

Or just do what Kevin said =P
#4
02/24/2008 (2:45 am)
Actually that's pretty sweet too Phillip, good for large intricate objects if you need a detailed collision on them. thanks :)
#5
02/24/2008 (5:17 am)
Happy to help!

I actually do something like Phillip says with scene objects as well. I use tile maps for all the terrain in my game, but the full box collisions default for the tile maps doesn't work for some reason -- the player will randomly fall in between the collision polygons. My solution is to use a bunch of overlapping collision active scene objects -- all rectangles or squares. This solves the problem, but obviously is a lot more time consuming level building wise.
#6
02/24/2008 (3:21 pm)
Yeah I've read a few posts and resources now that seem to bring up collision issues. Good to know the workarounds.