Trying to get collision detection working with havok

Hi - I'm having some trouble using collision detection within
director using a w3d file with havok applied to it. I've been using
the registerinterest function but I get a "value out of range"
error.
This is my code (there is a cone and box on a plane imported
from 3d max - named Cone01 and Box01 these are both movable rigid
bodies).
on beginSprite me
box1=member("3d").model("Box01")
cone1=member("3d").model("Cone01")
w = member ( 1 )
hk = member( 2 )
hk.initialize( w, 0.1, 1 )
hk.registerInterest (box1, cone1, 10, 0, #collision, me)
end
on collision me, details
sound(2).play(member("hihats"))
end
on enterFrame me
end
I've also tried this and had no luck:
on beginSprite me
rb1 = sprite(1).pHavok.rigidBody("Box01")
rb2 = sprite(1).pHavok.rigidBody("Cone01")
w = member ( 1 )
hk = member( 2 )
hk.initialize( w, 0.1, 1 )
hk.registerInterest (rb1, rb2, 10, 0, #collision, me)
end
Any help would be great.
Thanks

quote:
Originally posted by:
josiewales
Hi - I'm having some trouble using collision detection within
director using a w3d file with havok applied to it.
Just study this example:
http://necromanthus.com/Games/ShockWave/tutorials/FPS_Havok.html
cheers

Similar Messages

  • I have a Power Mac G4 and i am trying to get it to work with my LCD

    I have a Power Mac G4 and i am trying to get it to work with my LCD Monitor/TV. The connection on the computer is DVI and the connection on the Monitor is DVI. The Monitor says in the manual to hook up computers using the DVI connection. When I connect the too the monitor says there is no video input. I tried changing the settings on the monitor from PC mode to DVI mode and nothing. I have also tried changing the display on the computer to a couple of different settings and nothing. Please Help?

    Hi-
    A little more info please.
    What model G4?
    What Graphics card?
    What OS?
    What model/make of monitor?
    G4AGP(450)Sawtooth, 2ghz PowerLogix, 2gbRAM, RaptorSATAATA, ATI Radeon 9800   Mac OS X (10.4.8)   Pioneer DVR-109, 23" ACD, Ratoc USB 2.0, QCam Ultra, Nikon Coolscan

  • Anyone tried to get Jabber to work with Domino for contact search

                       I have a customer who has recently upgraded to CUCM 8.6.2.22900-9 and Presence 8.6.4.11900-1 fom CUCM 6.x and Presence 6.x. When they were at 6.x they were able to integrate CUPC contact search with Domino server. I realize this was not supported, but they got it to work. Now they want to attempt to get Jabber to work with Domino. Again I realize that is not a supported LDAP for Jabber, but I was wondering if anyone has perhaps tried this and what their experience was.

                       I have a customer who has recently upgraded to CUCM 8.6.2.22900-9 and Presence 8.6.4.11900-1 fom CUCM 6.x and Presence 6.x. When they were at 6.x they were able to integrate CUPC contact search with Domino server. I realize this was not supported, but they got it to work. Now they want to attempt to get Jabber to work with Domino. Again I realize that is not a supported LDAP for Jabber, but I was wondering if anyone has perhaps tried this and what their experience was.

  • Trying to get PM to work with our upgrade process

    We are trying to get Personality migration working properly in our
    environment to migrate our users from 2000 to XP. We have been able to
    get the files to migrate properly, but are having issues with the
    application settings. We have installed PM from Zenworks 7 which is the
    Computer Associates version. When we are setting up the template in the
    application area, there does not seem to be anything there. For example,
    how do we set PM to gather the IE settings but not gather the proxy
    settings? Also, where would I find better documentation on this product?
    THanks in advance for any help.
    Brian

    Brian,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Do a search of our knowledgebase at http://support.novell.com/search/kb_index.jsp
    - Check all of the other support tools and options available at
    http://support.novell.com.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://support.novell.com/forums)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://support.novell.com/forums/faq_general.html
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • Trying to get 3d to work with xbr70x850b and bdp-s7200

    have new xbr70x850b and new bdp-s7200.  Using Exodus to experiement.  BD says disk is 3d.  tv lets me into 3d menu so it seems to think the feed is 3d.  but none of the menu items (side by side, over/under) are present.  Glasses are registered and turned on.  BD connected directly into tv with new hdmi cable.  Have tried lots of setting changes on tv and bd, but can't get any of the 3d menu options to appear on tv.  3d works with streaming samples from youtube.  Just not with BD. Any hints?  very frustrating. 

    Ok I have been following the instructions supplied on this website http://www.zentus.com/sqlitejdbc/usage.html.
    I have downloaded the jar and the dll file and have placed them into the same folder as my jar file. Then as it says I enter into the command line:
    "java -cp sqlitejdbc.jar - Djava.library.path=. - jar CBL_Program.jar" and I get this:
    Exception in thread "main" java.lang.ClassNotFoundException: org.sqlite.JDBC
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:169)
    at cblprogram.Main.main(Main.java:28)
    Which seems to be the same exception as when I run the program from netbeans.
    I am really stumped on this one, please can someone help.

  • Ive bought an Airport Time Capsule. trying to get it to work with BT home hub 3

    Ive followed the advice on this forum but I still cant get the Capsule to connect to the internet.
    Ive set the Capsule as a bridge.
    Connected the ethernet cable from the Capsule to the Ethernet port on the back of the BT homehub 3.
    the light on the front of the capsule still flashes yellow.
    so I have a back up made, but in order to get it to work, i need to switch between the wireless network on the homehub (where I have internet connectivity) and the Capsule wireless network (where there is no internet connectivity)
    what am I doing wrong?
    thank you.

    That is odd. Normally with bridge you will have no issues with internet.
    Is the ethernet light on, both on the TC and HH3.. the little light next to the port.. or it might be on the main panel of the HH3.
    Find out what the error messages are by opening the airport utility and click on the TC.

  • Trying to get MySQL to work with Oracle Tutorial

    Hi,
    I was attempting to work through the following tutorial Build a Web Application with JDeveloper 11g Using EJB, JPA, and JavaServer Faces
    http://www.oracle.com/technology/obe/obe11jdev/11/ejb/ejb.html
    But with a twist that I want to attempt with MySQL. Whilst MySQL is working fine in the IDE when I test the javaServiceFacade it fails as the construct/syntax of the sql command is incorrect :-
    SELECT rowid, contractno, fax, advert, status, remark, tel, kva, lastuser, createddate, type, postcode, contact, country, modified, refno, address, email, custname FROM "enquiries" WHERE (refno LIKE ?)")
    You note the "enquires" which for mysql should not have the quotes and is causing error.
    I have looked at persistance.xml and it looks ok. Even tried setting database to MySQL4
    Any suggestions to what controls the SQL syntax?
    James
    excerpt from persistance.xml
    +<properties>+
    +<property name="eclipselink.target-server" value="WebLogic_10"/>+
    +<property name="javax.persistence.jtaDataSource"+
    +value="java:/app/jdbc/jdbc/main_MySQLDS"/>+
    +<property name="eclipselink.target-database" value="MySQL5"/>+
    +<property name="eclipselink.jdbc.native-sql" value="true"/>+
    +</properties>+
    +</persistence-unit>+
    +<persistence-unit name="genesys" transaction-type="RESOURCE_LOCAL">+
    +<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>+
    +<class>genesys.Enquiries</class>+
    +<properties>+
    +<property name="eclipselink.jdbc.driver" value="com.mysql.jdbc.Driver"/>+
    +<property name="eclipselink.jdbc.url"+
    +value="jdbc:mysql://127.0.0.1:3306/main"/>+
    +<property name="eclipselink.jdbc.user" value="root"/>+
    +<property name="eclipselink.jdbc.password"+
    +value="B0855467D54C688144F5AA7621CE386D"/>+
    +<property name="eclipselink.logging.level" value="FINER"/>+
    +<property name="eclipselink.target-server" value="WebLogic_10"/>+
    +<property name="eclipselink.target-database" value="MySQL5"/>+
    +<property name="eclipselink.jdbc.native-sql" value="true"/>+
    +</properties>+

    I am trying to do the same thing, but in my case I am using my onkyo receiver to do the decoding. I have a minijack converter to coax in the mic jack of the card. I switched the options to digital i/o out. This does work, but I can only get stereo sound. When I play my 5. dvd, it still plays it in stereo sound. I have all the settings correct, as I can get 5. sound out of my onboard coax but not the creative extreme music. It also greys out the option for passthru(external source decoder).
    My roommate has the platinum creative sound card with the front panel with coax/optical out right on it, he has WAY more dobly/dts options in his menu settings and is able to send 5. out easily. auto detects it and with minor tweaks, gets 5. out thru either optical or coax.
    I thought this card supported 5. coax out thru the digital port. I just dont think it does, the options are missing from the menu all together, and yes I have the most recently updated webupdate. I can get stereo sound thats it. Funny how my realtek onboard does a way better job then this "higher end" sound card.
    Am I missing something maybe? Please help, I would like to get this going, or at least get a solid answer if this is even possible so I can stop wasting my time with it.
    Thanks,
    Joe

  • I have a ipod touch gen 2 and I am trying to get airplay to work with my pioneer Elite VSX receiver.

    I have a gen 2 IPOD touch with the current operating system (4.2.1).  As well I have a Pioneer A/V Elite series VSX 52 that is airplay ready.  On my ipod touch there is no airplay icon(s) with the music feature.  I am trying to make this work but have no results.  If there is a download that I need to enable to have this function work.
    Let me know
    KUNTRI

    There are no setting on the iPod. Unlike the iPad wich morrors the iPad display, TV out on an iPod only displays TV out on apps that support TV out. The Video app is one such app.
    Is that you problem?
    Otherwise:
    Try:
    - Reset the iPod. Nothing will be lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup
    - Restore to factory settings/new iPod.

  • Trying to get SPDIF to work with Audigy 2... help! (I read the guide)

    ?I have the following miniplug/TOSlink cable purchased from Amazon:
    Amazon.com: Cables To Go 2707 Velocity Toslink-to-Optical Mini Plug Digital Cable (3 Meters): Electronics: Reviews, Prices & more
    I enabled SPDIF output from the Audigy 2 card as the default sound device in Windows 7. I have the miniplug end plugged into the white output of my Audigy 2. There is a sound bar next to the SPDIF output showing that there is output if I play a DVD or music. But, when I look at the TOSlink end of my cable, I see no red light AKA no signal is being output.
    In the audio console, I have tried both the SPDIF passthrough and the onboard encoder options without success from either. What am I still doing wrong? Thanks guys

    so what i understand is i cant connect my home theatre (optical out only) with my audigy 2 zs even i use optical to mini plug adapter?

  • My iMessage for my Macbook Air is not working. It says no delivered with a red ! next to it. I have tried serval different options on trying to get it to work to include logging out of iCloud and checking my date and time. I have done about everythin

    My iMessage for my Macbook Air is not working. I have updated everything. My system is running on OS X Yosemite Version 10.10. When I go to send a message, it says no delivered with a next to it. I have tried serval different options on trying to get it to work to include logging out of iCloud and checking my date and time and updating FlashPlayer. I have done about everything I can think of. Any help would be greatly appreciate!

    Why start a new and very similar thread to your other one which you have not responded to (have you read the replies?)
    I suggest that no response is made to this duplicate thread. 

  • Trying to get home shaing working on apple tv using Cisco Access points and a Cisco WLC 5508 with 7.2.110 code.  I can get devices working individually but they never see each other.  I can ping the apple tv from my laptop and ipad.

    Trying to get home sharing working on a corporate wireless network.  Cisco wireless.
    WLC5508 controller
    Cisco 3502 access points
    All apple devices on same WLAN - security WPA2-PSK
    ITunes account up to date
    All devices laterst software.
    Can ping apll tv from laptop
    can ping apple tv from ipad
    Can ping ipad from laptop
    can ping laptop from ipad.
    Apple tv never sees any other device.
    Any ideas?

    Fascinating just reading about your setup. I have a WRT350N and have noticed that it will drop its speed, sometimes down to 1Mbps. It seems to do so at about the same time every day, but usually comes back to speed in about 5 minutes. In my experience, the Apple TV will disconnect if the speed falls this low. Try monitoring the Linksys with Netstumbler, Vistumbler, or just in the Windows Network utility.
    Check the "lease obtained" and "lease expired" times for your router to see if that is when the network fails. I've just finished reading an angry thread over at the Linksys forum about the WRT330N where someone mentioned that the router wasn't renewing its lease.
    "I cannot set it run off automatic DHCP from the WRT330N, the router will not assign it an IP every time the lease expires, causing me to have to manually set an IP on the Print server. That's annoying. Having the router drop IP's to individual machines after 12-48 hours...very annoying."
    http://forums.linksys.com/linksys/board/message?board.id=Wireless_Routers&thread .id=67412
    If that is the problem, then I would consider setting up a Static IP address for your Apple TV. You can do that through the user interface -> Settings -> Network -> Configure ... (Quite intuitive as you only have change IP address and the subsequent details remain the same.)
    My router assigns IP Addresses in the ranges of 192.168.1.100 ->149. The idea here is to choose an address outside of that range but is not greater than 192.168.1.253 (and should not end in the number 1). You shouldn't have to change the linksys router as long as 50 clients are assigned in that range. You'll have to figure that out by accessing your router webpage at browser address 192.168.1.1 -> the default password is "admin" (without the quotes).
    Good luck.

  • HT200160 This solution does not seem to work when I upgraded from OS X 10.6 to OS X 10.8 (Mountain Lion).  I've tried all versions of this.  Any suggestions specific to getting this to work with Mountain Lion?

    Any suggestions for making this work with Mountain Lion?  I've tried all similar solutions on web.  I've been able to get this to work with Lion, and after upgrading to Mountain Lion it seems to hold true (doesn't make me implement again).  But when I went from OSX 10.6 to Mountain Lion and have to implement it on 10.8 - it isn't working. Thanks.

    Any suggestions for making this work with Mountain Lion?  I've tried all similar solutions on web.  I've been able to get this to work with Lion, and after upgrading to Mountain Lion it seems to hold true (doesn't make me implement again).  But when I went from OSX 10.6 to Mountain Lion and have to implement it on 10.8 - it isn't working. Thanks.

  • I need help with ISIGHT!  I can't get it to work with MSN!

    HI,
    My issue is this... I have AIM/AOL and I am able to see myself on webcam.. however noone else can unless they HAVE a webcam... My first question is- "DO you have to have a WEBCAM on both ends for both people to see you?" Does the person I am chatting with HAVE to have a webcam to see me? If so WHY? They should atleast be able to see ME if I want them to... Also if they are using windows for PC platform... can they use a pc webcam and still connect with me through my isight although I am on a mac?
    My second major ISSUE is.. WHY is the isight only compatible with AOL/AIM? I was told when I bought this it would be compatible with MSN Messenger for windows AND the MAC version... I have both and the isight does not show up on it... CAN ISIGHT be connected to msn messenger for MAC??? PLEASE help me!
    I called APPLE tech support and they couldn't even help me! They told me to call Microsoft! Anyhow- one guy did say he was able to get his ISIGHT working with the MSN messenger for MAC platform.. do you have ANY idea how to do that?? The thing is ALL my freinds are on PC's and have MSN messenger..
    ALSO- someone on mac rumors told me to look for a guy names RALPH! Said you know A LOT about mac and pc compatibility! PLEASE HELP
    Bottom line - I want to use isight with msn so my msn pc friends can share webcam... I also have virtual pc software... is it easier to just get a pc webcam and do it through there? ( i tried that and it didn't work either) i need major TECH SUPPORT!
    THANK YOU

    Microsoft's Messenger for Mac (MSN) does not support webcams at all.
    I have found the best alternative to MSN to be aMSN with macam for the webcam driver (it is a cheap usb webcam). Both are free open source projects. I guess if you use an iSight you will not need macam.
    aMSN can be found here: http://amsn.sourceforge.net/
    macam can be found here: http://webcam-osx.sourceforge.net/
    The speed is substantially faster and it is far more stable than Mercury in my experience.
    The only difficulty is the camera is often shown as being "in use by another application". To counter this I start macam, then plug in the camera (or unplug and plug back in). Then I start aMSN.

  • How do I get FF to work with Mod Organizer (for mods used with ES: Skyrim)? I get an error message that it can't understand the address given.

    I am an avid Elder Scrolls fan and am using the new STEP 2.2.9 setup. They've gone to Mod Organizer (MO) and I cannot seem to get my FF working with the download mod portion of things. I click the "earth" icon, which takes me immediately to the Nexus Mod files page but when I choose a file to download after clicking "Download with Manager" I get this error message:
    The address wasn't understood
    Firefox doesn't know how to open this address, because one of the following protocols (nxm) isn't associated with any program or is not allowed in this context.
    You might need to install other software to open this address.
    The address given, when clicking "Download with Manager" begins with nxm://Skyrim/mods/ The address is such due to trying to download with the manager.
    Any help will be greatly appreciated! I've pulled my hair out for the last few hours trying to find a fix. I've disabled Adblock, all other popup blockers and enabled the main address in my exception rules. It's just not working. Ugh!
    Thank you in advance!

    In order to use ''nxm://'' links, Nexus Mod Manager must be installed and associated with the ''nxm'' protocol.
    * http://www.nexusmods.com/skyrim/mods/modmanager/
    In case of problems with this third-party program, please refer to its support forum:
    * http://forums.nexusmods.com/index.php?/forum/1413-nmm-code-development-chat

  • Has anyone figured out how to get speech recognition working with sticky keys enabled on mountain lion?

    I'm trying to use speech recognition to input text on my iMac running the latest mountain lion, 10.8.3.
    I have sticky keys enabled.
    When I try to start speaking by pressing the function key twice nothing happens. I can only get it to work if I disable sticky keys.
    The same problem occurs with all the other modifier keys as shortcut, they do not work with sticky keys.
    When I try to select a different shortcut, I am unable to select a two key combination, but am limited to one.
    If I select the F6 key, or any other single key, I am able to start speech recognition. However the second time that I press the key, it does not stop recognition and process my words. Instead, it restarts the recognition.
    Has anyone figured out how to get speech recognition working with sticky keys enabled?
    Or a way to get an individual key shortcut to start on the first press and process it on the second?
    Or a way to get key combinations to work, as specified by the help:
    Dictation On and Off
    To use Dictation, click On.
    When you’re ready to dictate text, place the insertion point where you want the dictated text to appear and press the Fn (function) key twice. When you see the lighted microphone icon and hear a beep, the microphone is ready for you to speak your text.
    Shortcut
    By default, you press the Fn (Function) key twice to start dictation. If you like, you can choose a different shortcut from the menu.
    To create a shortcut that’s not in the list, choose Customize, and then press the keys you want to use. You can press two or more keys to create your shortcut.

    I noticed with version 10.8.4 of OS X that I am now able to select F6 to activate, and the return key to complete the speech recognition. This is still different than the description of how these should function that's included in the help, but at least it's an improvement.

Maybe you are looking for

  • J2SE 5.0 & JSP/Servlets

    Please excuse my ignorance but when will J2SE 5.0 functionality be available in JSP and Java Servlets (esp. in Apache)?

  • How do I get a discussion back on track?

    Several weeks ago, I started a discussion on how to install / run Windows (and other software) on my late-model Mac and also to do other related things. I started receiving reply messages that appeared to be helpful tips from a couple of people in th

  • Technical document for ORCL 9i CDC

    Hello, Where can our developers get technical documentation on using the 9i CDC in our custom application? Is there an OCI set for our apps to extract the CDC information? Thank you, Alex

  • Best way to stop or kill a thread

    hi what would say is the best way to kill a thread in this situation. 1. I have 200 threads 2. Each Thread has a reference stored in a hashtable example; for( int i=0; i<200; i++){ Thread t = new exThread(i); hashtable.put(Integer(i) , t ); t.start()

  • How to move picture from email to photo album

    How do I move photo from email to photo album ?