Alice Community  

Go Back   Alice Community > Alice 3 > How Do I?

Reply
 
Thread Tools Display Modes
Collide With Anything
Old
shaderlein
Junior Member
 
Status: Offline
Posts: 1
Join Date: Mar 2022
Default Collide With Anything - 04-22-2022, 10:14 AM

Hello,

Is there a way to check if an object is colliding with ANY object? The only way I have been able to do this is by creating collision detection the typical way and including every single object other than the user controlled character in one of the arrays. It's not the biggest deal when there aren't many objects but quickly becomes a problem when there are a large number of objects.
   
Reply With Quote
Old
djslater107
Administrator
 
Status: Offline
Posts: 193
Join Date: Jan 2007
Default 04-23-2022, 02:50 PM

Unfortunately, there is no way to check if Alice is colliding with anything.

The Collison detection is triggered by any interaction with something from the SThing class, the top level class in the Alice class hierarchy. The ground is also part an object of the Thing class.

Anything would include the ground, which is probably a step too far for where you want to go.

Don Slater


Don Slater
Alice Team
Carnegie Mellon University
   
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2022, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.