[ODE] First steps and collision management.
Zanshin
gzanshin at gmail.com
Fri Jan 12 11:59:35 MST 2007
The last mail had a mistake:
- currentContacts.Add(new Contact(w, ci[1], ContactJointGroup));
Should be
- currentContacts.Add(new Contact(w, cInfo, ContactJointGroup));
On 1/12/07, Zanshin <gzanshin at gmail.com> wrote:
>
> Ok, I created a contact joint group and added the joints to it in the
> Collision event. However this makes no sense The JointGroup is never linked
> to the world or the space so how could stepping the world take them into
> account? There must be something else; some way of linking a JointGroup to a
> world o space.
>
>
> //----
> // No need to read. Beyond this point there's just a part of the code
> described in the text.
>
> //ODE.Joints.JointGroup ContactJointGroup = new JointGroup();
> //List<Contact> currentContacts;
> public void Collision(ContactInfo[] ci, Geom g1, Geom g2)
> {
> foreach (ContactInfo cInfo in ci)
> {
> currentContacts.Add(new Contact(w, ci[1],
> ContactJointGroup));
> }
> }
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mooshika.org/pipermail/ode/attachments/20070112/dd3cfb05/attachment.htm
More information about the ODE
mailing list