ThreadBoard ArchivesSite FeaturesActiveworlds SupportHistoric Archives |
Event AwObjectCollide (Sdk)
Event AwObjectCollide // Sdkr i c h a r dJun 6, 2004, 9:34pm
An event raised when ever someone collides with an object with a name or
with out a name. The event would then send to the sdk object number and basic properties as well as the avatar session name and location. andrasJun 7, 2004, 5:54am
[View Quote]
> An event raised when ever someone collides with an object with a name or
> with out a name. > > The event would then send to the sdk object number and basic properties as > well as the avatar session name and location. > > Imagine the traffic this option would generate :(( When you are walking you are colliding with several objects all the time. OTOH it would be a very useful feature :) -- Andras "It's MY computer" (tm Steve Gibson) johnfJun 7, 2004, 10:56am
Maybe when people collide with vertical objects such as walls. Perhaps
maybe just when you shift few an object? If this is what Richard wanted? ~John [View Quote] kfJun 7, 2004, 3:13pm
Hmm, but what about when only collisions on items that are flagged are
reported? Eg. in a command like "report bump" which would then, when bumped, propagate this bump to the world server. [View Quote] johnfJun 7, 2004, 3:50pm
Aye!
Aye! Aye! Lol! ~John Aye-Aye captain. Full stead ahead mr Barker, full stead ahead! ~John [View Quote] xelagJun 7, 2004, 8:36pm
Collision is detected frame by frame by the rendering engine of each
individual browser and is cpu intensive - it is all done client side. This means, there is absolutely no internet traffic involved (except for the downloading of objects and updating of avatar and object positions). It would be absurd to have all this activity broadcasted to all, even updates of avatar position are sent at fixed intervals, skipping older ones :) The difference is that object click/select or avatar click require a conscious action from a user, whereas collision is a frame by frame calculation. When you bump into something, it is your browser that decides you have bumped., and acts accordingly on you. The consequences are broadcasted as your new position, avatar state, etc, at due intervals (15 per sec is maximum if the world allows it, 1 per secong is default). But the actual bump, which depends on your fps and involves multiple objects, can not be broadcasted. Alex On 6 Jun 2004 19:34:10 -0400, "r i c h a r d" [View Quote] >An event raised when ever someone collides with an object with a name or >with out a name. > >The event would then send to the sdk object number and basic properties as >well as the avatar session name and location. > r i c h a r dJun 12, 2004, 11:30am
I know how it works I have made my own 3d applications before including my
universe http://www.futurescape3d.co.uk/downloads.htm :P [View Quote] |